Specifying Robust Selenium Element Locators

Deprecated Page
Deprecated Page

Introduction

If you ever recorded Selenium using the IDE, you will have noticed that the recorded script will break very easily if the page layout changes or if the page has dynamic content. So, understanding how to specify Selenium Element Locators will help you build reliable tests that will continue to work with little or no maintenance as developers or dynamic data changes the DOM or page layout.

Examples

Selenium Command Examples

Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.