Dec 6, 2019 in Testing
Q: What are the different types of locators in Selenium?

2 Answers

0 votes
Dec 6, 2019
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
Mar 31

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
Click here to read more about Loan/Mortgage
Click here to read more about Insurance

Related questions

0 votes
May 8, 2020 in Testing
...