A locator is a kind of address that offers a unique way of identifying a web element on the webpage. Selenium has a range of locators to identify different elements of a webpage, namely:
ClassName
CSS Selector
DOM
ID
LinkText
Name
PartialLinkText
TagName
XPath