Selenium Assignment – 4

Here is the fourth assignment in the series of real-time scenarios. In this assignment, you will practice 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 a way that based on argument passed respective browser is selected.
  • Browse to https://in.ebay.com/ website.
  • Enter a product in the search box on the homepage (say Apple Watches).
  • From categories dropdown, select category of your product (say Electronics).
  • Click the Search button.

1

  • Write a method to print the result of the product.
  • Write a method to print Nth product say 10th Product. (This should be a generic method)
  • 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. 

Happy Learning and keep reading QA Tech Hub 🙂

Here is the link to the Fifth Assignment.

Saurabh Dhingra

About the Author

Saurabh Dhingra

Follow Saurabh Dhingra: