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 itself. Each alias is its own single-key command — no separate condition or negated field. The positive and negative variants map directly to the table below.

Parameters

ParameterTypeRequiredDescription
elementstringNoNatural-language description of the target. Use exactly one of element, css, coords, or x/y.
cssstringNoCSS selector for the target. Use instead of the description key.
coordsstring | { x, y }NoAbsolute viewport coordinates. Either an x, y string (e.g. 120, 40) or a { x, y } object.
xnumber | stringNoX coordinate. Must be provided together with y.
ynumber | stringNoY coordinate. Must be provided together with x.
useSelectorbooleanNoSkip AI resolution and require the cached selector to match exactly.
forcebooleanNoForce the action even when the element is not actionable.
DANGEROUS_FORCE_DYNAMICbooleanNoBypass the step cache and resolve the target dynamically every run.
iframestringNoDescription of the iframe to scope the action to.
timeoutnumberNoMaximum time in milliseconds to wait for the condition to hold.
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

When the alias takes no extra fields (e.g. Exists, Visible), the value can be a single target string.
- checkElementVisible: Save button

Examples

- checkElementVisible: the 'view code' button
- checkElementVisible:
    element: the Delayed action button
    timeout: 16000
- checkElementVisible:
    element: the paragraph with the text about clicking the button from iframe 1
    iframe: https://bit.ly/38erOdQ
- checkElementEnabled:
    element: api key link
    timeout: 30000
- checkElementDoesNotExist:
    css: "#processing"
- checkElementNotVisible:
    element: "{{ env.NON_PLAN }} column in the pricing table"
    DANGEROUS_FORCE_DYNAMIC: true
- checkElementFocused: username input
- checkElementEditable: enabled input

Notes

Aliases supported by this family:
Alias
checkElementExists
checkElementDoesNotExist
checkElementVisible
checkElementNotVisible
checkElementEnabled
checkElementNotEnabled
checkElementEditable
checkElementNotEditable
checkElementFocused
checkElementNotFocused