0 votes
in Testing by
What are the different types of locators in Selenium?

2 Answers

0 votes
by
The locator is nothing but an address that identifies a web element uniquely within the webpage. Thus, to identify web elements accurately and precisely we have different types of locators in Selenium as follows:

ID

ClassName

Name

TagName

linkText

PartialLinkText

Xpath

CSS Selector

DOM
0 votes
by

The locator can be termed as an address that identifies a web element uniquely within the webpage. Thus, to identify web elements accurately and precisely we have different types of locators in Selenium:

  • ID
  • Link Text
  • Partial Link Text
  • X path
  • DOM
  • Class Name
  • Name
  • Tag Name
  • CSS Selector

Related questions

0 votes
asked Dec 6, 2019 in Testing by SakshiSharma
0 votes
asked Dec 9, 2019 in Testing by Robindeniel
...