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.

Taps a target. The simplified form takes a single string. Provide a natural-language description or a percent pair like "50%, 50%".

Parameters

ParameterTypeRequiredDescription
onstringNoTarget description or percent pair.
longPressbooleanNoHold the tap instead of a quick press.
longPressDurationnumberNoHold duration in milliseconds when longPress is set.
iterationsnumberNoNumber of taps to issue.
tapDelaynumberNoMilliseconds between taps when iterations > 1.
offsetstring | { x, y }NoPixel offset from the resolved target ("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

Target as a single string.
- tap: the Add to cart button

Examples

- tap: "50%, 50%" # tap the center of the screen
- tap:
    on: the kebab menu in the top-right
    longPress: true
    longPressDuration: 1500 # hold for 1.5s