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

ParameterTypeRequiredDescription
thatstringYesWhat must be true on the screen, purely from the screenshot.
timeoutnumberNoMilliseconds to wait for the condition to become true.
saveAsstringNoVariable to store this step’s return value on env.<name>.
retriesnumberNoTimes to retry the step on failure before failing the test.
skippedbooleanNoSkip this step at execution time.

Shorthand

Condition as a single string.
- assertVisually: the cart shows a red error banner above the checkout button

Examples

- assertVisually:
    that: The dashboard chart is visible and not cut off
    timeout: 10000 # poll for up to 10s before failing