wait_for
Wait for a condition on a web page, such as text, element state, URL match, or JavaScript predicate. Checks the current state first and returns immediately if already satisfied.
Instructions
Wait for text to appear or disappear, an element to reach a state, a
URL to match, or a JS predicate to hold. EVERY condition is checked
against the current state first and returns immediately when it already
holds, so a wait issued after the thing already happened costs nothing
instead of timing out (the field's URL wait expired on a navigation
that had finished before the call). A url value without wildcards
matches as a substring; use * and ? for globbing. Real timeouts, and a
failure that says what was awaited and what was observed instead.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | Yes | ||
| value | No | ||
| location | No | ||
| condition | Yes | ||
| timeout_ms | No |