Locating Web Elements by name

0 votes

Another common attribute is `name`, it’s widely used in HTML forms.

Example HTML:

<input name="emailaddress" type="email" />

We can use the following locator:

input[name='emailaddress']

 

Examine your knowledge and play the ‘locator game‘.

Please follow and like us:
Locating Web Elements by attribute/wildcard matching
Locating Web Elements by id