Element reference

Autotest step

Autotest step

An autotest step is one Playwright action inside an autotest. A step has action_name, optional Target, optional Value, optional timeout_ms, and expected_value when needed.

On the autotest card, steps use the Panel or Cards view. How to switch and when only cards remain: Autotest step authoring.

The source of truth for action rules is the data file autotest-actions.json in the documentation repository (app/src/.vitepress/data/). Per-action how-tos: /en/autotests/actions/{action_name}.

Relations

Related elementHow it connects
AutotestRequired parent
Element / pageOptional Target from the object repository
Test accountVia Value source TEST_ACCOUNT on the running CASE

Model fields

LabelTechnical nameMeaning
Actionaction_nameName from the catalog (21 actions)
TargetTargetRepository element/page or on-step locator
ValueValue / value_textText, path, URL, key, or attribute name - per action
Value sourcevalue_source_typeINLINE or TEST_ACCOUNT
Account fieldvalue_source_fieldlogin or password when TEST_ACCOUNT
Timeouttimeout_msOptional wait/assert limit in ms
Expected valueexpected_valueFor toHaveAttribute: expected attribute contents

Field tables as a schema projection arrive after the request-validation schema artifact. Until then, use the action catalog below and the SDK.

Target locator kinds

kind literals are UPPERCASE only:

kindMeaningUI label (EN)
ROLEAccessibility role; add name when needed (name)Role
LABELAssociated field label (label / accessible name of an input)Label
PLACEHOLDERPlaceholderPlaceholder
TESTIDTest idTest id
TEXTVisible text on the page (not a field label)Text
CSSCSS selectorCSS
IDid attributeID
NAMEname attributeName
XPATHXPathXPath
SELECTORGeneric selectorSelector

In Find by, do not confuse LABEL and TEXT:

ChooseWhen
LABEL (Label)Target a control by its label (for example “Email” or “Password” on an input)
TEXT (Text)Target an element by visible text on screen (a “Save” button, a heading, a link)

On the autotest step card the select is Find by. The same kind literals and the same original English labels (Role, Label, Text) appear on object-repository elements, in every UI locale.

JSON and API always use LABEL / TEXT (UPPERCASE), matching the enum literals. UI labels stay the original English words; they are not translated.

Target may also reference an object-repository record instead of an on-step locator. Details: Binding a Target from the object repository.

Value sources

ValueMeaning
INLINEText is stored on the step
TEST_ACCOUNTThe worker reads field login or password from the running CASE account

Test-account fields for the source: login, password. How-to: Test account values in steps.

Catalog rules

  • Screenshot is not a step. Run options (Screenshot on failure, Result screenshot) are not an action_name. Typical false step failures: How to author autotest steps without false failures.
  • TEST_ACCOUNT cannot be combined with a repository page Target on the same step.
  • TEST_ACCOUNT is forbidden for goto, waitForURL, toHaveURL, and waitForTimeout.
  • Do not click new-tab links (target=_blank): open the URL with goto.
  • Check syntax inspects stored steps. It does not open the site and does not catch Playwright strict mode at runtime.
  • It warns when a CSS locator uses substring *=. Prefer exact locators.

Action catalog

Target / Value columns: required, unused, or optional - from autotest-actions.json. The link opens the action how-to.

action_nameGroupTargetValueTEST_ACCOUNTHow-to
gotoNavigationUnusedOptional (url)Nogoto
clickPointerRequiredUnusedNoclick
dblclickPointerRequiredUnusedNodblclick
fillInputRequiredRequired (text)Yesfill
typeInputRequiredRequired (text)Yestype
pressInputRequiredRequired (key)Yespress
checkInputRequiredUnusedNocheck
uncheckInputRequiredUnusedNouncheck
selectOptionInputRequiredRequired (text)YesselectOption
hoverPointerRequiredUnusedNohover
focusPointerRequiredUnusedNofocus
waitForSelectorWaitRequiredUnusedNowaitForSelector
waitForURLWaitUnusedRequired (url)NowaitForURL
waitForTimeoutWaitUnusedRequired (duration_ms)NowaitForTimeout
goBackNavigationUnusedUnusedNogoBack
goForwardNavigationUnusedUnusedNogoForward
reloadNavigationUnusedUnusedNoreload
toBeVisibleExpectRequiredUnusedNotoBeVisible
toHaveTextExpectRequiredRequired (text)YestoHaveText
toHaveURLExpectUnusedRequired (url)NotoHaveURL
toHaveAttributeExpectRequiredRequired (attribute_name) + expected_valueYestoHaveAttribute

Limits

  • For goto, a full URL must point to a verified team domain (or subdomain).
  • A failed expect step (toBeVisible, toHaveText, toHaveURL, toHaveAttribute) fails the autotest result.

Version 2.4.0 · Last updated 2026-09-15

Did this page help?