Write a selenium web driver test script to scroll and print all items name from a web page. Below is an example using FlipKart.
- Log in to Flipkart.
- Type Samsung in search box and Click search button.
- Click mobile link.
- Scroll and print all the names.
Scrolling is the only challenging portion here, until when we have to scroll is the question. In the above scenario we will scroll the web page until no-more-results are displayed.
Ping us for any help. Like us at Facebook.