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.

Asserts a condition on the element’s text content. Each alias is its own single-key command. There is no separate condition or negated field. The positive and negative variants map directly to the table below.

Parameters

ParameterTypeRequiredDescription
onstringYesTarget description or percent pair.
valuestringSometimesValue to compare against. Required for every condition except *Exists and *DoesNotExist.
timeoutnumberNoMilliseconds to wait for the condition to hold.
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.
commentstringNoFree-form annotation kept with the step.

Examples

- checkElementContentEquals:
    on: the price label
    value: "$9.99"
- checkElementContentContains:
    on: the status banner
    value: In progress
    timeout: 15000 # poll for up to 15s before failing

Notes

Aliases supported by this family:
Alias
checkElementContentExists
checkElementContentDoesNotExist
checkElementContentContains
checkElementContentDoesNotContain
checkElementContentEquals
checkElementContentDoesNotEqual
checkElementContentStartsWith
checkElementContentDoesNotStartWith