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

Adding filters to the name

There are times when there may be elements on the page that have the same name but a different attribute. When this happens we can apply filters to the locator so that Selenium IDE can find the element that we are after.

An example of this on the page would be name=verifybutton value=chocolate;. This will find the second button with the name verifybutton. See an example of this in the following screenshot:

Adding filters to the name

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