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.

Presses a physical device button. The simplified form takes the button name as a single string.

Parameters

ParameterTypeRequiredDescription
keyenumYesButton to press (see values below).
longPressbooleanNoHold the button instead of a quick press.
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.
Button values: home, power, back, app_switcher, search, volume_up, volume_down, volume_mute. back, app_switcher, search, and the volume buttons are Android-only.

Shorthand

Button name as a single string.
- press: home

Examples

- press:
    key: back
    longPress: true # hold the button instead of a quick press