top of page
id
Find elements by their unique 'id' attribute. IDs are supposed to be unique across the HTML page:
name
Locate elements by their 'name' attribute. Names should be unique or used with caution as they may be shared by multiple elements:
class name
Find elements by their 'class' attribute. It can be used for multiple elements with the same class name:
tag name
Locate elements by their HTML tag name. For example, to find all anchor tags '<a>' on the page:
link text
Locate anchor elements '<a>' by their exact text:
partial link text
Find anchor elements (<a>) by a part of their text:
css selector
Use CSS selectors to find elements based on CSS properties:
xpath
Use XPath expressions to locate elements based on their XML path:
bottom of page