wait
Pause test execution until a CSS selector reaches a specified state (visible, hidden, attached, detached) with optional timeout.
Instructions
Wait for an element or condition
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": {
"selector": "<selector>"
},
"name": "wait"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| state | No | State to wait for (default: visible) | |
| timeout | No | Timeout in ms (default: 5000) | |
| selector | Yes | CSS selector to wait for |