What are the different types of locators in Selenium?

Solution

Locators are used to identify the web elements accurately in a web page. Different types of locators are available in Selenium:

Different types of locators are available in Selenium are as following:

  • ID
  • Name
  • TagName
  • ClassName
  • Xpath
  • DOM
  • LinkText
  • CSS Selector
  • PartialLinkText

Share this thread

Comments

Comments
comments powered by Disqus

Navigation

Social Media