Focus a field or element
Moves focus to an element, and can select its text.
Focus selector
Details #
Focuses the element. With select the text in a field is selected too.
Parameters #
| Parameter | Type | Required | Values | What it does |
|---|---|---|---|---|
selector | text | Yes | Required. | |
browser | one of | safari chrome front | ||
select | yes / no | Select the field's text. | ||
tab | any value | |||
timeout | number | , tab. |
Every step also accepts label, onFailure, timeout and dryRunSafe.
Examples #
Focus the search box
Do
- Focus “input[type=search]”