wait_for
Wait for a selector, text, URL pattern, or JS condition to become true, then return. Uses in-page polling to avoid repeated DOM serialization.
Instructions
Wait until a condition holds on the page, then return. Use this instead of polling scan_page (each scan re-serializes the whole DOM). Exactly one of selector / text / url_pattern / js must be given: selector waits for a CSS match, text for a substring in body text, url_pattern for a regex on the URL, js for a JS expression to become truthy. Polls inside the page, so it costs one bridge roundtrip regardless of how long the wait takes.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| js | No | ||
| gone | No | ||
| text | No | ||
| timeout | No | ||
| selector | No | ||
| session_id | No | ||
| url_pattern | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||