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.

Mobile tests use a mobile-specific command set. Targets are natural-language descriptions or percent pairs ("50%, 50%"). There are no CSS selectors or absolute pixel targets. See Test format for file shapes, targets, scroll containers, and conditionals.

AI

CommandSummary
actHand a natural-language goal to the AI agent, which taps and swipes to satisfy it.
assertRun an AI assertion about the current screen. Fails the test by default.
extractPull a value off the screen with the AI agent and save it to env.

Interact

CommandSummary
tapTap an element by description or percent-pair coordinates.
typeType text into a field, optionally clearing and submitting.
swipeSwipe the screen or a container in a direction.
scrollToScroll a container until the target is visible.
dragAndDropDrag from one target and drop onto another.

Device

CommandSummary
pressPress a physical device button (home, back, volume).
pressKeyPress a software keyboard key (enter, delete).
rotateRotate the device to portrait or landscape.
toggleSettingsToggle an Android system setting such as airplane mode or Wi-Fi.
openNotificationsOpen the Android notification drawer.

App

CommandSummary
openAppLaunch an app by package name or bundle identifier.
killAppForce-stop the app under test.
installAppInstall an app from a file path.
uninstallAppUninstall an app by package name.

Screen checks

CommandSummary
checkScreenContainsAssert that text appears somewhere on the screen.
checkScreenDoesNotContainAssert that text does not appear on the screen.

Element checks

CommandSummary
checkElementAssert a condition on the element itself (exists, visible, enabled).
checkElementAttributeAssert a condition on an attribute of the element.
checkElementContentAssert a condition on the element’s text content.
checkElementNameAssert a condition on the element’s type/class name.
checkElementStyleAssert a condition on a computed style property.

Network

CommandSummary
requestIssue an HTTP request and optionally save the response.

Scripts

CommandSummary
javascriptRun a JavaScript snippet and optionally store its return value.
adbRun an adb command against the connected Android device.
appiumExecute an Appium script against the device.

Files

CommandSummary
addFilePush a file from the host onto the device.

Waits

CommandSummary
waitSleep for a fixed number of milliseconds.

Control flow

CommandSummary
ifRun a block of steps only when a condition holds.
moduleInvoke a reusable module of steps.

Debugging

CommandSummary
debugStateCapture the current device state for debugging.
openNotifications, installApp, uninstallApp, toggleSettings, and adb are Android-only.

Common options

Every step accepts these shared keys:
OptionTypeDescription
saveAsstringVariable to store this step’s return value on env.<name>.
retriesnumberTimes to retry the step on failure before failing the test.
skippedbooleanSkip this step at execution time.
commentstringFree-form annotation kept with the step.