How-to

Focus (focus)

Focus (focus)

Moves focus to Target without a click. Useful before press.

Step model

action_namefocus
GroupPointer
TargetRequired
ValueUnused
expected_valueUnused
TEST_ACCOUNTForbidden
Do not confuse withclick, hover

Target/Value facts match the source-of-truth catalog and Autotest step.

Prerequisites

  1. The element is focusable.

Steps

  1. Add a focus step.
  2. Set Target.
  3. 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:

FieldValue
action_namefocus
Targetkind 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.

Version 1.0.0 · Last updated 2026-09-11

Did this page help?