Selenium Assignment – 3

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

Number of Links on a Page:

Scenario:

  1. Open a Browser (write the generic code such that by changing the parameter browser can be changed.)
  2. Navigate to https://flipkart.com website.
  3. Write a method to find the count (number of) links on the homepage of Flipkart.
  4. Write another method to print link text and 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.comKeep Learning 🙂

Here is the link for Forth Assignment

Saurabh Dhingra

About the Author

Saurabh Dhingra

Follow Saurabh Dhingra: