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:
Follow by Email
Facebook
Google+
http://www.seleniuminaction.com/locating-web-elements-by-name/
Twitter
LinkedIn
Locating Web Elements by attribute/wildcard matching
Locating Web Elements by id

Leave a Reply

Your email address will not be published. Required fields are marked *