Skip to main content

wait_for_state

Waiting

Waits for an element to reach the specified state.

Parameters

Parameter Type Required Default Description
selector string Yes Element selector using type=value format
state string Yes Expected element state
Options: visible, hidden, attached, detached
iframe string No CSS selector for iframe context
timeout number No 30000 Maximum wait time in milliseconds

Usage Example

RTILA X PROJECT JSON

    {
  "command": "wait_for_state",
  "params": {
    "selector": "css=.loading-spinner",
    "state": "hidden",
    "iframe": "",
    "timeout": 30000
  }
}
  

Related Scenarios

Related Learning Articles

Was this helpful?