assert_visible
Verifies that a UI element is visible on screen during mobile tests, returning an error when it is not found. Supports matching by text, resource ID, or regex.
Instructions
Assert that an element is currently visible on screen. Returns an error if the element is NOT 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 |