What will be the different kinds of locators in Selenium?

by bailey_conroy , in category: Technology , 3 years ago

What will be the different kinds of locators in Selenium?

Facebook Twitter LinkedIn Telegram Whatsapp

1 answer

by cristobal , 3 years ago

Locator might be known as a tackle that identifies an internet component uniquely within the web page. Hence, to identify internet elements correctly and exactly we’ve got different types of locators in Selenium:

  1. ID
  2. ClassName
  3. Name
  4. TagName
  5. link text
  6. PartialLinkText
  7. Xpath
  8. CSS Selector
  9. DOM