Docs
API 1.39
Status
Actions

press

The `press` step.

Presses a key, named as Playwright names keys (Enter, Tab, Control+A).

Type: string

#Keys

KeyTypeDescription
press.targettargetThe element to focus before pressing the key. Without it, the key goes to whatever has focus.

Every step also takes the common step keys: expect, id, if, name, on_error, optional, retry, side_effect, timeout_ms, x_kaab.

Was this page helpful?