Unable to locate a list of webelements on the webtable | Selenium Forum
P
P K Shankar Posted on 01/04/2019

Please refer the attachment and address my query.


P
P K Shankar Replied on 01/04/2019

I was able to resolve the attached query. Now I have another query. 

I have a webtable which stores thousands of records, but pagination has been implemented on that webtable. So at any given point of time I can either fetch 10 records, 25 records or 50 records per page.

I was able to fetch all the records pertaining to a particular column for 1 page at a time, but how do I fetch all the records for all the pages for a particular column. Say suppose I have an employee table which stores records of 10000 employees. I need to fetch employee No. of all the employees. Pagination has been implemented, because of which only 10 records are displayed at a time. Now as per my code I am able to fetch only 10 records from the webtable at a time. My question is how do I fetch all the 10000 records in one go.

 

Thanks Much


A
Ashish Thakur Replied on 02/04/2019

There is no way around

You have to write a function to traverse all pages and get values