assert_visible
Verifies an element or text is visible by querying WebView DOM, native accessibility, and Maestro, and fails with an error when verification is impossible.
Instructions
Asserts an element/text is visible, via the oracle ladder (WebView-DOM > native a11y > Maestro). Passes only when a capable oracle confirms presence; if the surface is a WebView whose DOM can't be read (isInspectable=false), returns an 'unverifiable' error instead of a false pass. Provide text (any surface) or selector (WebView).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| udid | Yes | Simulator UDID | |
| text | No | Visible text to match (native a11y / WebView innerText) | |
| selector | No | CSS selector — WebView surfaces only | |
| bundleId | No | App bundle id for the Maestro fallback (native surface) | |
| contains | No | Substring match for text (default false = exact full-string on native a11y). WebView innerText is always substring. | |
| timeoutMs | No | Poll budget (default 3000) |