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 (41 actions)
TargetTargetRepository element/page or on-step locator
ValueValue / value_textText, path, URL, key, attribute name, count, class, id, CSS property, or tab title - per action
Value sourcevalue_source_typeINLINE, TEST_ACCOUNT, or RUN_PARAMETER
Account fieldvalue_source_fieldlogin or password when TEST_ACCOUNT
Timeouttimeout_msOptional wait/assert limit in ms
Expected valueexpected_valueFor toHaveAttribute, the expected attribute contents; may be left empty. For toHaveCSS, the computed property value; required

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
TITLEtitle attributeTitle
ALTImage alternative textAlt
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
RUN_PARAMETERValue is a template. <<name>> is replaced from the run parameter of that name

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

RUN_PARAMETER cannot be combined with a repository page on the same step. Put <<name>> in the page Path instead, and keep the step pointed at that page. The same token in an element Locator value or Accessible name is replaced when the step uses that element. Names are collected from the whole project and filled under Run parameters when you create a run. See Autotest run creation.

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.
  • For press, Target is optional. Value is a Playwright key string: Enter or Control+Shift+F. Modifiers are only Shift, Control, Alt, Meta, and ControlOrMeta. Details: Key press (press).

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
rightClickPointerRequiredUnusedNorightClick
dblclickPointerRequiredUnusedNodblclick
fillInputRequiredRequired (text)Yesfill
typeInputRequiredRequired (text)Yestype
pressSequentiallyInputRequiredRequired (text)YespressSequentially
pressInputOptionalRequired (key)Yespress
checkInputRequiredUnusedNocheck
uncheckInputRequiredUnusedNouncheck
selectOptionInputRequiredRequired (text)YesselectOption
clearInputRequiredUnusedNoclear
selectTextInputRequiredUnusedNoselectText
hoverPointerRequiredUnusedNohover
focusPointerRequiredUnusedNofocus
blurPointerRequiredUnusedNoblur
scrollIntoViewIfNeededPointerRequiredUnusedNoscrollIntoViewIfNeeded
waitForSelectorWaitRequiredUnusedNowaitForSelector
waitForURLWaitUnusedRequired (url)NowaitForURL
waitForTimeoutWaitUnusedRequired (duration_ms)NowaitForTimeout
goBackNavigationUnusedUnusedNogoBack
goForwardNavigationUnusedUnusedNogoForward
reloadNavigationUnusedUnusedNoreload
toBeVisibleExpectRequiredUnusedNotoBeVisible
toBeHiddenExpectRequiredUnusedNotoBeHidden
toBeEnabledExpectRequiredUnusedNotoBeEnabled
toBeDisabledExpectRequiredUnusedNotoBeDisabled
toBeCheckedExpectRequiredUnusedNotoBeChecked
toBeEditableExpectRequiredUnusedNotoBeEditable
toBeFocusedExpectRequiredUnusedNotoBeFocused
toBeEmptyExpectRequiredUnusedNotoBeEmpty
toHaveTextExpectRequiredRequired (text)YestoHaveText
toContainTextExpectRequiredRequired (text)YestoContainText
toHaveValueExpectRequiredRequired (text)YestoHaveValue
toHaveCountExpectRequiredRequired (count)YestoHaveCount
toHaveURLExpectUnusedRequired (url)NotoHaveURL
toHaveTitleExpectUnusedRequired (title)YestoHaveTitle
toHaveAttributeExpectRequiredRequired (attribute_name) + expected_valueYestoHaveAttribute
toHaveClassExpectRequiredRequired (class_name)YestoHaveClass
toHaveIdExpectRequiredRequired (dom_id)YestoHaveId
toHaveCSSExpectRequiredRequired (css_property and expected_value)YestoHaveCSS

Limits ​

  • For goto, a full URL must point to a verified team domain (or subdomain).
  • A failed step in the Expect group fails the autotest result.

Version 2.6.0 · Last updated 2026-10-27

Did this page help?