Specifying Robust Selenium Element Locators

Last modified by Kieran Kelleher on 2007/11/30 14:17

Warning

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