assert_not_visible
Verifies that an element or text is not visible on the screen. Returns an error if absence cannot be confirmed, ensuring reliable negative assertions.
Instructions
Asserts an element/text is ABSENT. FAILS CLOSED: if absence cannot be verified (e.g. a WebView whose DOM is unreadable — native a11y is blind to web content), returns an 'unverifiable' error rather than a false pass. Passes only when a capable oracle confirms absence.
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 | Confirmation budget (default 1500) |