Selenium Assignment – 3

August 15, 2016

Here is the third assignment in the series of real-time scenarios to practise. In this assignment, we are focusing on working with links and getAttribute method.

Number of Links on a Page:

Scenario:

  1. Open a Browser (any browser say chrome.)
  2. Navigate to Flipkart.
  3. Write a method to find the number of links on the homepage of Flipkart.
  4. Write another method to print urls of all the links on the page of Flipkart.

Try this. Send us the code for feedback and assessment or if you have any questions, queries or comments. Feel free to write us support@qatechhub.comWe will be back soon with next assignment.

Till then, Keep Learning 🙂

Saurabh

About the Author

Saurabh

Follow Saurabh:

Leave a Comment: