Wait For Condition
browser_wait_forWait for an element, text to appear, or text to disappear before proceeding. Handles dynamic content and async updates to avoid timing errors.
Instructions
Wait for a condition before proceeding — an element to appear, text to become visible, or text to disappear. Use this to handle dynamic content, AJAX loading, animations, or any async page updates. Examples: wait for a success message after form submit, wait for a loading spinner to disappear, wait for a modal to open. Timeout defaults to 10 seconds.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | Force a specific mode. | |
| text | No | Wait for this text to appear anywhere on the page | |
| timeout | No | Maximum wait time in milliseconds | |
| visible | No | If true, wait for element to be visible (not just in DOM) | |
| selector | No | CSS selector to wait for in the DOM | |
| textGone | No | Wait for this text to disappear from the page | |
| sessionId | No | Puppeteer session ID. Skips mode selection. |