browser_wait_for
Pauses automation until an element appears, becomes visible, clickable, or hidden, or until pending API requests finish, so actions run only when the page is ready.
Instructions
Waits for an element to appear, become visible, clickable, hidden, or waits for network idle (pending API requests to finish).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | No | Indexed reference ID of the element to wait for. | |
| text | No | Visible text content of the element to wait for. | |
| state | No | Condition state to wait for (default: "visible"). Use "network_idle" to wait until background API/fetch requests settle. | |
| tabId | No | Optional tab ID. | |
| timeout | No | Maximum milliseconds to wait (default: 10000ms). | |
| selector | No | CSS selector of the element to wait for. |