Forum Discussion
Hi Abhi,
Assuming that you can scroll table down (via scrollbar, key presses, etc.), I would suggest to get initial rows count, scroll down, get current rows count and compare it with initial. If the number increased, repeat scroll down. Otherwise assume that you've reached end of the table.
(Obviously, you will have to consider some additional logic to wait until new rows are downloaded and rendered, but the general idea remains the same.)
- Adagio7 years agoFrequent Contributor
Thank Alex! Well scroll bar can't really be identified as an object. On the other hand, it's a custom table, I have to get the row count each time I scroll down and then wait. It's going to be a very strange/inefficient looking code. I would have to wait to find out a better approach. I'm sure there would be one, but I've been able to figure that out yet.
Thank you
Abhi
- AlexKaras7 years agoChampion Level 3
Hi Abhi,
> I would have to wait to find out a better approach.
Probably the best way would be to talk with developers and ask for their recommendations.
However, if the table is dynamic and "more rows get loaded" when you reach the end of the table until all rows are loaded, I see only two possible solutions.
First is to emulate the actions of the end-user. I.e. scroll down and wait until next portion of records is loaded.
Second one is to call some function on the page that loads the next portion of records. This approach will load all records without the necessity to scroll down the table.
But with any approach from above you will need to a) wait until records are loaded and b) have some indication that all records have been loaded and you may to go ahead in the test.
Related Content
- 13 years agoOferv
- 8 years agotmahender12
- 9 months agoroopepaajanen
Recent Discussions
- 4 hours agoMW_Didata