Selenium WebDriver - What are the different types of locators in Selenium?
Selenium WebDriver Interview question and Answers
(Continued from previous question...)
Selenium WebDriver - What are the different types of locators in Selenium?
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
ClassName
Name
TagName
LinkText
PartialLinkText
Xpath
CSS Selector
DOM
(Continued on next question...)
Other Interview Questions
|