assert, but the agent reasons over the screenshot rather than
the DOM (web) or accessibility/XML hierarchy (mobile). Use this when the
property under test is purely visual, such as color, layout, icons, or charts,
or when the underlying structure is unavailable or unreliable.
Parameters
Shorthand
Assertion text as a single string.Examples
assertVisually evaluates the assertion from the screenshot only and
skips capturing 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 the condition is purely visual.