Skip to main content
Same shape as assert, but the agent reasons over the screenshot rather than the accessibility/XML hierarchy. Reach for it when the screen is rendered in a way the hierarchy cannot describe (for example a WebView with multiple pages) or when the condition is purely visual, such as color, layout, icons, or charts. The simplified form takes the condition as a single string.

Parameters

Shorthand

Condition as a single string.

Examples