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.

Scrolls a container until the target is visible. The simplified form takes the target as a single string.

Parameters

ParameterTypeRequiredDescription
onstringYesTarget description or percent pair to scroll to.
directionup | downNoDirection to scroll while searching. Defaults to down.
instring | { x, y, delta }NoScroll container: screen, app, webview, a description, or raw coordinates.
scrollStepPercentnumber | stringNoDistance per scroll as a percent of the viewport (e.g. 50).
maxScrollAttemptsnumberNoMaximum number of scroll gestures before giving up.
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.

Shorthand

Target as a single string.
- scrollTo: the "Delete account" row

Examples

- scrollTo:
    on: the "Delete account" row
    in: the settings list # scroll this container, not the whole screen
    direction: down
    maxScrollAttempts: 10 # give up after 10 swipes