Hi Divya, in Selenium Locators define an address that identifies a web element uniquely within the webpage. Thus, to identify web elements accurately and precisely we can use different types of locators. Following are the types of locators supported by Selenium Webdriver:
- ID
- ClassName
- Name
- TagName
- LinkText
- PartialLinkText
- Xpath
- CSS Selector
- DOM