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.

Primary mouse click. Provide exactly one of on, css, coords, or x/y. The simplified form takes a single string description.

Parameters

ParameterTypeRequiredDescription
onstringNoNatural-language description of the click target.
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.
offsetstring | { x, y }NoPixel offset from the resolved target. Either an x, y string or a { x, y } object.
timesnumberNoNumber of times to click. Must be >= 1.
rightClickbooleanNoIssue a right-click instead of a primary click.
waitForDownloadbooleanNoWait for a download to start after the click.
delaynumberNoMilliseconds to hold between mousedown and mouseup.
downloadTimeoutnumberNoMaximum time in milliseconds to wait for a download.
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

Target description as a single string.
- click: the GB regression test menu item

Examples

- click:
    on: "the module card showing 'Module: testing-copilot'"
    waitForDownload: false
    retries: 2
- click:
    on: the button to download as zip
    waitForDownload: true
    saveAs: DOWNLOADED_FILE
- click:
    css: '[data-pendo-tracking="invoice-workspace-menu"]'
- click:
    on: the click here button
    iframe: https://bit.ly/3re1ic9
- click:
    coords: 0, 0
- click:
    on: the lucide save button in the top toolbar even if it is disabled
    force: true