How-to

Click (click)

Click (click)

A single click on an element. Target is required: an object-repository element or an on-step locator.

Step model

action_nameclick
GroupPointer
TargetRequired
ValueUnused
expected_valueUnused
TEST_ACCOUNTForbidden
Do not confuse withdblclick, hover

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

Prerequisites

  1. The element must be visible when the step runs (add toBeVisible or waitForSelector earlier if needed).
  2. The link must not open a new tab (target=_blank).

Steps

  1. Add a step and choose click.
  2. Set Target: an object-repository element or a locator (kind + value).
  3. Leave Value empty.
  4. Save and optionally check syntax.

The step is stored on the autotest. Next - neighbouring steps or autotest run creation.

Examples

Button by role

Fields in the UI:

FieldValue
action_nameclick
Targetkind ROLE, value button, name Сохранить

Step JSON fragment (copy-paste):

json
{
  "action_name": "click",
  "target": {
    "kind": "ROLE",
    "value": "button",
    "name": "Сохранить"
  }
}

Fields in the UI:

FieldValue
action_nameclick
Targetkind TEXT, value Забыли пароль?

Step JSON fragment (copy-paste):

json
{
  "action_name": "click",
  "target": {
    "kind": "TEXT",
    "value": "Забыли пароль?"
  }
}

Common mistakes

  • Clicking a target=_blank link breaks the flow - use goto with a full URL.
  • A CSS locator with *= triggers a syntax warning and a brittle step.

Screenshots

Screenshots of the step form for click will be added here in a later pass.

Version 1.0.0 · Last updated 2026-09-11

Did this page help?