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.

Swipes the screen or a container in a direction. The simplified form takes a direction string.

Parameters

ParameterTypeRequiredDescription
directionup | down | left | rightYesSwipe direction.
instring | { x, y, delta }NoScroll container: screen, app, webview, a description, or raw coordinates.
viewportPercentnumber | stringNoDistance to swipe as a percent of the viewport (e.g. 90 or "90%").
durationnumberNoSwipe duration in milliseconds.
offsetstring | { x, y }NoPixel offset for the gesture start ("x, y" or { x, y }).
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

Direction as a single string.
- swipe: up

Examples

- swipe:
    direction: down
    in: the product list # swipe inside this container, not the whole screen
    viewportPercent: 75 # travel 75% of the viewport per swipe