Selenium Locators – How to Identify Web Elements in Selenium?
Locators – It is a strategy to identify the Web Elements on the application under test. In WebDriver this is possible through two methods exposed by every language bindings called as “findElement” and “findElements”. These methods use the “By” Locator/Object to identify each and every WebElement, following are the different locator strategies
Following DOM tag is used for illustrating examples