1 Answer

0 votes
by
In Selenium WebDriver, there are 8 different types of locators:

ID – Practical example

ClassName – Practical example

Name – Practical example

TagName – Practical example

LinkText – Practical example

PartialLinkText – Practical example

XPath – Practical example

CSS Selector – Practical example

Click here to see the detailed post on Locators.
...