Finding the location of the element is the main and important task in selenium to find out the element we need Object Identification in Selenium by the different properties.
All the element present on the wave page will be identified using target or locator.Target or locator are used to identify the element present in the web page.
In selenium we can identify the object through following attribute.
Id is the attribute attached to the html web element for each element the id associated with the element is different.To find a element through target or locator id is the most unique way to locate the element.
Name might be same for different element so to identify the element through name sometimes makes difficulty.
To identify the element through CSS we might find difficulties because of same CSS might be used in the different location in the webpage.
XPATH is the most convenient way to locate the target or locator.Whatever the situation is we can find the element by XPATH very uniquely.
Partial Link Text()