Udemy REST Assured free

List of Selenium Locators

Selenium uses locators to find and match the elements on website page. Selenium WebDriver uses different locators to find the elements on web page. Locator is a command that tells Selenium IDE which GUI elements ( say Text Box, Buttons, Check Boxes etc) its needs to operate on. Identification of correct GUI elements is a prerequisite to creating an automation script. Locators helps locate the GUI elements through which multiple user actions can be performed. 

Here is the list of Locators:

  • ID
  • Name
  • Link Text
  • Partial Link Text
  • Tag Name
  • Class Name
  • DOM Locator
  • CSS Selector
  • XPath

Video Tutorial: List of Selenium Locators