What is Web Element Locator?
. It is an address that identifies a web element uniquely within a web page
. Selenium supports 8 type of Locators to identify elements web pages
id,
name,
className,
tagName,
linkText,
partialLinkText,
cssSelector,
xpath,

Why we need to use different Locators to recognize Elements?
1. All Locators may not available for every element
2. Some Locators are not applicable for every element
Example: linkText, partialLinkText (* only for Link elements)
3. Some Locators may be duplicated in your scenario

How to inspect Web Elements?
Element Locators are common for every browser

Mozilla Firefox:
Page Inspector (Built-n feature of Firefox Browser)

Google Chrome
Developer Tools (F12)

MS Edge
Developer Tools (F12)

Automated Testing using Selenium WebDriver, Create Selenium WebDriver Test Cases using web Element Locators and Selenium WebDriver API Commands.