Checkout our demo site to practice selenium https://magento.softwaretestingboard.com/

1 like 0 dislike
536 views
in Selenium by The go-to Tester (391 points)
How may I click on the load more button repeatedly until the very last item in the page has been loaded?

1 Answer

0 like 0 dislike
by The go-to Tester (181 points)
Identify the element.
Create a do while loop.
Inside the loop, write the code to click and then wait for the load more button.
Your exit condition should be load more button is not visible.

Hope that helps


This site is for software testing professionals, where you can ask all your questions and get answers from 1300+ masters of the profession. Click here to submit yours now!

1.4k questions

1.6k answers

866 comments

1.9k users

...