Element Locators
Element Locators tell Selenium which HTML element a command refers to. The format of a locator is:
locatorType = argument
We support the following strategies for locating elements:
identifier= id
- Select the element with the specified @id attribute. If no match is found, select the first element whose @name attribute is id. (This is normally the default; see below.)
id= id- Select the element with the specified @id attribute.
name= name- Select the first element with the specified @name attribute.
- username
- name=username