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.

Parameters

ParameterTypeRequiredDescription
thatstringYesWhat must be true on the page.
timeoutnumberNoMaximum time in milliseconds to wait for the assertion to hold.
iframestringNoURL or URL pattern of the iframe that contains the target element.
saveAsstringNoName of the variable to write this step’s return value to.
retriesnumberNoNumber of times to retry the step on failure before failing the test.
skippedbooleanNoSkip this step at execution time.

Shorthand

Assertion text as a single string.
- assert: vue is selected

Examples

- assert:
    that: |
      the AI action step (the topmost step on the left, with goal text about
      clicking the Visible Button) has a green check icon next to it
      indicating the step succeeded
    timeout: 90000
- assert:
    that: |
      the only step in the test (an AI_EXTRACT step) has a green check icon
      next to it indicating the step succeeded
    timeout: 60000
- assert:
    that: |
      there is a message saying file upload finished
    DANGEROUS_FORCE_DYNAMIC: false