Selenium Assignment – 4

Here is the fourth assignment in the series of real-time scenarios. In this assignment, you will practise various features of Selenium WebDriver like selecting from a dropdown, writing dynamic xpath for lists, iterating lists, invoking JavaScript etc.

Ebay search product project:

Scenario:

  • Open any Browser of your choice (Mozilla firefox, Chrome, Internet Explorer or Safari). Write the code in such way that based on argument passed respective browser is selected.
  • Browse to Ebay website.
  • Write a method which do following:
  • On the homepage, there is a search box, type some product (say Apple Watches).
  • From categories dropdown, select the category of your product (say Watches).
  • Click Search button.

1

  • Write a method to print the result of the product.
  • Write a method to print Nth product say 10th Product.
  • Write a method to print all products from 1st page.
  • Write a method to print all products along with scroll down.

PS: Try this scenario and for feedback or any query, mail it to us at qatechhub@gmail.com. Soon we will publish its source code as well.

Happy Learning and  keep reading QA Tech Hub 🙂

Saurabh Dhingra

About the Author

Saurabh Dhingra

Follow Saurabh Dhingra:

Leave a Comment: