How-to

Key press (press)

Key press (press)

Presses a key or chord in the Target context. Value is a Playwright key name, for example Enter or Control+A.

Step model

action_namepress
GroupInput
TargetRequired
ValueRequired (key)
expected_valueUnused
TEST_ACCOUNTAllowed
Do not confuse withtype, fill

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

Prerequisites

  1. Focus or Target points to an element that accepts the key.

Steps

  1. Add a press step.
  2. Set Target.
  3. In Value enter the key (Enter, Escape, Tab, Control+Enter).
  4. Save.

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

Examples

Submit with Enter

Fields in the UI:

FieldValue
action_namepress
Targetkind LABEL, value Password
ValueEnter
value_source_typeINLINE

Step JSON fragment (copy-paste):

json
{
  "action_name": "press",
  "target": {
    "kind": "LABEL",
    "value": "Password"
  },
  "value_text": "Enter",
  "value_source_type": "INLINE"
}

Common mistakes

  • Do not put a password string in Value - only the key name.

Screenshots

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

Version 1.0.0 · Last updated 2026-09-11

Did this page help?