wait_for_state
WaitingWaits 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
- View /scenarios/dynamic-content/2 · dynamic content
Related Learning Articles
Was this helpful?
Thank you for your feedback!