Skip to main content

dispatch_event

Interaction

Dispatches a DOM event on an element.

Parameters

Parameter Type Required Default Description
selector string Yes Element selector using type=value format
event_type string Yes JavaScript event name e.g. mouseover input change
iframe string No CSS selector for iframe context
timeout number No 5000 Maximum wait time in milliseconds

Usage Example

RTILA X PROJECT JSON

    {
  "command": "dispatch_event",
  "params": {
    "selector": "css=#search-input",
    "event_type": "input",
    "iframe": "",
    "timeout": 5000
  }
}
  

Related Scenarios

Related Learning Articles

Was this helpful?