How-to

Key press (press)

Key press (press) ​

Presses one key or a chord. Value is a Playwright key string. Target is optional: with a Target the key goes to the element, without a Target it goes to the page.

Step model ​

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

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

Prerequisites ​

  1. When Target is set, the element must accept the key.
  2. For a page chord such as Control+Shift+F, leave Target empty.

Steps ​

  1. Add a press step.
  2. Set Target when the key must hit an element. Leave Target empty for a page key.
  3. In Value enter a key: Enter, Escape, Tab, F5, or a chord Control+Shift+F.
  4. Modifiers are only Shift, Control, Alt, Meta, and ControlOrMeta. Name case matters.
  5. 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"
}

Page chord ​

Fields in the UI:

FieldValue
action_namepress
Targetempty
ValueControl+Shift+F
value_source_typeINLINE

Step JSON fragment (copy-paste):

json
{
  "action_name": "press",
  "value_text": "Control+Shift+F",
  "value_source_type": "INLINE"
}

Common mistakes ​

  • Do not write Ctrl, CMD, Win, Command, or control. The names are Control, Meta, and ControlOrMeta.
  • A chord ends with a key, not a modifier. Control+Shift is rejected.
  • A lone plus is the string +. Inside a chord, plus separates parts; the plus key is NumpadAdd, and the equals key is Equal.
  • Without a Target, the step timeout is not applied to the key press.

Screenshots ​

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

Version 1.1.0 · Last updated 2026-10-03

Did this page help?