Selectors

Commands like click, setValue, and others operate on DOM elements. To select a DOM element, use the <attribute>=<value> selector.

This selector selects elements based on their HTML attributes. For the following input:

<input type="email" id="emailField" class="input input-email">

the following selectors will work:

type=email

id=emailField

and the following selectors will not:

class=input input-email (spaces inside attribute values are not supported)

class="input input-email" (not even if quoted)

Example:

// Set the email to [email protected]
setValue type=email [email protected]