Wait for
wait_forWait for an element to reach a specified state (attached, detached, visible, hidden) using CSS selector or visible text, with configurable timeout.
Instructions
Waits for an element (located by CSS selector or visible text) to reach the given state.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"sessionId": "<sessionId>"
},
"name": "wait_for"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | No | ||
| state | No | visible | |
| timeout | No | Max time to wait, in milliseconds (default 30000) | |
| selector | No | ||
| sessionId | Yes |