Hi Mark,
Thanks for your reply. Your code partially works that too if i replace
"While..Wend" with "If .... End If" statement. Please find the attachment
for my webtable. I dont have "Next" rather it displays as "..." [ Note:
This will be displayed only fi the page count crosses No:10]. If the page
count is less than 10, it wont display "...". Please look into the
screenshot.
And also, the rowcount includes table header in each page so count is
displayed wrongly.
Thanks
Vidya
On Monday, 1 June 2015 01:28:31 UTC-4, Sperk wrote:
>
> Vidya, does the 1,2,3 page links also have a Next link?
>
> I've done something like this in the past
>
> rCount = Browser("X").Page("Y").WebTable("Z").RowCount
>
> While Browser("X").Page("Y").Link("innerText:=Next").Exist
> Browser("X").Page("Y").Link("innerText:=Next").Click
> Browser("X").Page("Y").Sync
> rCount = rCount + Browser("X").Page("Y").WebTable("Z").RowCount
> Wend
>
>
> Mark Smith
>
>
>
>
> On Sunday, May 31, 2015 at 2:56:04 PM UTC+1, vidya Bose wrote:
>>
>> Hi All,
>>
>> I am trying to find the total count of records which are displayed inside
>> a webtable. The webtable has page number links(1,2,3,....) and i want to
>> know the total from all the pages. please help me with the QTP code. Note:
>> I tried with rowcount() but it retrieves only one page record not all
>> pages. please help...!!!!
>>
>
--
--
You received this message because you are subscribed to the Google
"QTP - HP Quick Test Professional - Automated Software Testing"
group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/MercuryQTP?hl=en
---
You received this message because you are subscribed to the Google Groups "QTP
- HP Quick Test Professional - Automated Software Testing" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.