• Home
  • Recent Q&A
  • Java
  • Cloud
  • JavaScript
  • Python
  • SQL
  • PHP
  • HTML
  • C++
  • Data Science
  • DBMS
  • Devops
  • Hadoop
  • Machine Learning
in Testing by
Q:
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 May 8, 2020 in Testing by Robindeniel
0 votes
asked Mar 29 in Selenium by sharadyadav1986
...