Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to recognize the Total number of Pages
#4
Solved: 11 Years, 3 Months, 2 Weeks ago
HI munish,
'--------------------------------------------------------------------------------------------
Code:
Browser(X).Page(X).WebList("name:=Page:").Highlight 'To highlight the listbox in App.
ItemNum = Browser(X).Page(X).WebList("name:=Page:").GetRoProperty("items count")
msgbox = Browser(X).Page(X).WebList("name:=Page:").GetItem (ItemNum)
'This will give the total number of pages.
'--------------------------------------------------------------------------------------------
To check the number of records on the last page either you can use the childobjects of checkboxes or simply by checking the text "300 to 352 of 352".

Let me know if you need more info.
Hi Munish,

but the bette way of writting script should use the number of records shows (352) "1 to 100 of 352" and "Showing:" (100 per Page). Based on these two you should validate the number of pages displayed in the "Pages" list box and then proseed with the above post.

let me know if you need any thing else
Thanks,
SUpputuri
Reply


Messages In This Thread
RE: How to recognize the Total number of Pages - by supputuri - 07-24-2009, 04:00 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Blank pages occurring when running Google Chrome test in ALM 11 DDODGE 0 2,944 05-12-2014, 07:39 PM
Last Post: DDODGE
  Recognize which plugin use opcode 0 1,551 03-03-2010, 03:34 AM
Last Post: opcode
  How to see the data of a third page if it has multiple pages venkatbatchu 5 3,364 07-30-2009, 04:44 PM
Last Post: Saket
  How to retreive the values from a table in different pages sowmyak 1 2,168 07-31-2008, 12:48 PM
Last Post: surya_7mar
  How to check Titles in web Pages manju 2 3,426 01-17-2008, 12:43 AM
Last Post: manju

Forum Jump:


Users browsing this thread: 2 Guest(s)