wait
Pause execution until a CSS selector appears, disappears, or specific text is found on the page.
Instructions
Wait for a selector to appear, disappear, or text to appear
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| selector | No | CSS selector to wait for | |
| selectorGone | No | CSS selector to wait for absence of | |
| text | No | Page text to wait for (substring match in body innerText) | |
| timeoutMs | No | Timeout in milliseconds; defaults to the configured page-load timeout |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| matched | Yes | Whether the condition was met before timeout | |
| elapsedMs | Yes | How long the wait took, in milliseconds |