wait_for
Wait for text to appear or disappear on a web page, with customizable timeout, avoiding repeated polling.
Instructions
Wait for text to appear or disappear on the page.
Avoids polling with repeated get_page_map calls. Specify exactly one of 'text' (wait for appearance) or 'text_gone' (wait for disappearance).
After condition is met, page map is invalidated. Call get_page_map to get updated refs.
Args: text: Wait for this text to appear (case-sensitive substring match, max 500 chars). text_gone: Wait for this text to disappear (e.g., "Loading...", spinner text). timeout: Maximum seconds to wait (default 10, max 30).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | No | ||
| timeout | No | ||
| text_gone | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |