|
Answer» Selenium WEB driver uses below 8 locators to find the elements on the web page: - id – used to SELECT the element with a SPECIFIED @id attribute.
- name – used to Select the first element with the specified @name attribute.
- linkText - used to select link /anchor tag element which CONTAINS the matching TEXT
- PartialLinkText – used to select link (anchor tag) element which contains text matching the specified partial link text.
- tagName – used to locate the element using its HTML Tag
- className – used to locate the Element using a class Name
- cssSelector - used to locate the element using CSS selectors
- xpath – used to locate the element using an XPath expression.
|