Locators

Locators for Selenium

Selenium webdriver uses 8 locators to find the elements on web page. The following are the list of object identifier or locators supported by selenium.

We have prioritized the list of locators to be used when scripting.

id Select element with the specified @id attribute.

Name Select first element with the specified @name attribute.

Linktext Select link (anchor tag) element which contains text matching the specified link text