Skip to main content

Documentation Index

Fetch the complete documentation index at: https://momentic.ai/docs/llms.txt

Use this file to discover all available pages before exploring further.

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.
iframestringNoDescription of the iframe to scope the assertion to.
sourcestringNoMarker used to attribute the assertion in traces (e.g. failure recovery).
DANGEROUS_FORCE_DYNAMICbooleanNoBypass the step cache and re-evaluate the assertion every run.
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.
commentstringNoFree-form annotation kept with the step.

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