assert_not_visible
Verify an element is absent from the screen, returning an error if it appears. Use it to confirm UI elements are hidden or removed during mobile tests.
Instructions
Assert that an element is NOT currently visible on screen. Returns an error if the element IS found.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | No | Visible text or content-desc; regex full-match — use .* for partial, e.g. 'Sign.*' | |
| device_id | No | Target device ID. If omitted, uses the default device. | |
| resource_id | No | Bare resource-id, e.g. login_button; regex full-match |