How-to
Focus (focus)
Focus (focus)
Moves focus to Target without a click. Useful before press.
Step model
action_name | focus |
| Group | Pointer |
| Target | Required |
| Value | Unused |
| expected_value | Unused |
| TEST_ACCOUNT | Forbidden |
| Do not confuse with | click, hover |
Target/Value facts match the source-of-truth catalog and Autotest step.
Prerequisites
- The element is focusable.
Steps
- Add a
focusstep. - Set Target.
- Save.
The step is stored on the autotest. Next - neighbouring steps or autotest run creation.
Examples
Focus the field before Enter
Fields in the UI:
| Field | Value |
|---|---|
action_name | focus |
| Target | kind LABEL, value Search |
Step JSON fragment (copy-paste):
json
{
"action_name": "focus",
"target": {
"kind": "LABEL",
"value": "Search"
}
}Common mistakes
- focus does not replace a button click.
Screenshots
Screenshots of the step form for focus will be added here in a later pass.
Did this page help?