Professional Documents
Culture Documents
on browser
Multiple Ways To Locate Elements - Locators
Id – unique id of an element
Name – unique name of an element
className – element belonging to a particular class
tagName – element from specific tag name i.e. a, div etc.
linkText – The text mentioned on a link
partialLinkText – The text mentioned on a link but matched partially
cssSelector – using css to find element.
Xpath – using xml path to determine the location of an element it works on both Html page
and XML documents