WebDriver – Locators

Locator is a command that tells Selenium IDE/Webdriver which GUI elements needs to operate on (Say Text Box, Buttons, Check Boxes etc). Locators are the basic building blocks of a web page. A web developer must use a proper and consistent locator scheme for a website. Also, a test engineer must choose the correct locator