Skip to main content
The agent inspects the current page state and returns whether the assertion holds. Use for semantic checks that are awkward to express as a CSS selector or substring match. For visual-first checks whose condition is fully visible in the current viewport, prefer assertVisually.

Parameters

Shorthand

Assertion text as a single string.

Examples