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

Locating elements by ID

On web applications today, elements should have an ID attribute for all their controls on the page. A control would be an element that we can interact with and is not static text. This allows Selenium to find the unique item, since IDs should be unique, and then complete the action that it needs to do against that element.

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