browser_wait_for_text
Wait for a specific text to appear in the page DOM, polling every 500ms until found or timeout. Returns an ARIA snapshot once the text appears, replacing blind waits.
Instructions
Wait for a specific text to appear anywhere in the page DOM (case-insensitive substring match). Polls every 500ms until the text is found or the timeout elapses. Replaces blind browser_wait(time) calls. Returns a fresh ARIA snapshot once the text appears. Use after clicking a submit button, or to wait for a Stripe dashboard to finish loading. On timeout, returns an error with the current page text length so you can diagnose what is or isn't rendering.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | The text (or substring) to wait for. Case-insensitive. Whitespace-normalized. | |
| tabId | No | Optional tab ID to target. When omitted, routes to the agent's active tab. Use browser_list_tabs to see available tab IDs. | |
| timeout | No | Maximum seconds to wait. Default 30. Use 5-10 for fast SPAs, 60+ for dashboard loads. |