browser_wait
Wait for a DOM element or text to appear on the page. Use after navigation or clicks to handle SPAs, AJAX, and other dynamic content.
Instructions
Wait for a DOM element or text to appear on the page. Use for SPAs, AJAX, and dynamic content.
PREREQUISITE: browser_open and browser_go must have been called first.
Use this AFTER browser_go or browser_click when the page loads content asynchronously. Provide EITHER selector OR text (not both).
Args: selector: CSS selector to wait for (e.g. "#dashboard", ".search-results", "table.data") text: Text content to wait for (e.g. "Welcome back", "Results found") timeout: Maximum wait time in seconds (default: 10). Returns error if element doesn't appear. session_name: Browser session to use (default: "default")
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | No | ||
| tab_id | No | ||
| timeout | No | ||
| selector | No | ||
| session_name | No | default |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |