Wait for the page
wait_forPause automation until specified text appears or an element becomes visible or hidden. Keeps waiting across navigations and fails if the condition is not met in time.
Instructions
Wait until text appears on the page or an element (ref) becomes visible, or with state "hidden" until it goes away. Keeps waiting across navigations. Fails with WAIT_TIMEOUT if it doesn't happen in time.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | No | Wait until this element is visible (or gone). Give either text or ref. | |
| text | No | Wait until this text is on the page (case-insensitive). Give either text or ref. | |
| state | No | "visible" (default) waits for it to appear; "hidden" waits for it to go away. | |
| timeoutMs | No | How long to wait, in milliseconds (default 10000). |