Skip to main content

press

Interaction

Presses a keyboard key or combination.

Parameters

Parameter Type Required Default Description
selector string No Element selector using type=value format
key string Yes Key name e.g. Enter Tab Escape ArrowDown Control+A
iframe string No CSS selector for iframe context
timeout number No 5000 Maximum wait time in milliseconds

Usage Example

RTILA X PROJECT JSON

    {
  "command": "press",
  "params": {
    "selector": "css=#email-input",
    "key": "Enter",
    "iframe": "",
    "timeout": 5000
  }
}
  

Related Scenarios

Related Learning Articles

Was this helpful?