Fetching total number of records inside a webtable - Printable Version +- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums) +-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP) +--- Forum: VB Scripting/Descriptive Programming (https://www.learnqtp.com/forums/Forum-VB-Scripting-Descriptive-Programming) +--- Thread: Fetching total number of records inside a webtable (/Thread-Fetching-total-number-of-records-inside-a-webtable) |
Fetching total number of records inside a webtable - vidya2k2 - 05-31-2015 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 RE: Fetching total number of records inside a webtable - venkatesh9032 - 06-11-2015 Please clarify me howz ur pagination looks like is it a drop down or 123456789... after clicking ...11 12 13 14 15 16 Because it is bit hard way to count records using pagination for the above html view. RE: Fetching total number of records inside a webtable - venkatesh9032 - 06-15-2015 Hi, By default the pagination is in 1 you will get the record count for that page u need the increment the link by 1 and should start the loop again and store the first page and second page link count in a dynamic array... You will get total count of the webtable in all pages. The pagination link will be spyed as webtable try to spy correctly(This is main part of the program) snippet. Code: //For pagination it will act as link //Try use the above snippet and modify hope it works.. Happy scripting |