O'Reilly logo

Selenium 2 Testing Tools Beginner's Guide by David Burns

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Time for action - finding elements by link text

Probably the most common element on a page is a link. Links allow pages to be joined together so end users can navigate your site with confidence. You can see a screenshot of the element being found in Selenium IDE.

  1. To specify that you want to follow a link you would use the target link=link.
  2. On http://book.theautomatedtester.co.uk/chapter2, there is a link to the index page of the site. In the Target textbox in Selenium IDE, we are going to need to add link=Index. If you click Find button on Selenium IDE you will see the following:
    Time for action - finding elements by link text

What just happened?

We have seen how we can find links that are on that ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required