Skip to main content
Test steps in MobileBoost can be either command-based or AI-powered. Command-based steps execute directly against the UI hierarchy for fast, deterministic results. AI instructions use natural language and are more flexible, handling complex or non-standard interactions. If a command-based step fails at runtime, the AI automatically takes over as a fallback.

Command-based steps

Command-based steps run directly without AI, resulting in faster execution and lower cost. AI is only used as a backup when unexpected elements appear, such as popups, notifications, UI changes, or missing element IDs. Commands can be created manually or generated automatically using the test recorder.
WebView automation through commands currently has limited support. Use AI instructions for WebView interactions instead.

Gestures

CommandDescription
TapTap on an element by ID or text
TypeType text into a field
Scroll (up/down)Scroll in a direction
Scroll down until visibleScroll down until a specific element or text appears
Scroll up until visibleScroll up until a specific element or text appears
Swipe (left/right)Swipe in a direction
Slide (left/right/up/down)Slide a specific element in a direction by a percentage
Long press (by text)Long press on an element identified by text
Long press (by ID)Long press on an element identified by ID
Remove textClear text from an input field
WaitWait for a specified duration
CommandDescription
Navigate to screenNavigate to a specific screen in the app
Open deep linkOpen a deep link URL on the device
Launch app by IDLaunch a specific app by its bundle/package ID
Press Android back buttonPress the system back button (Android only)
Restart appClose and relaunch the app

Assertions

CommandDescription
Assert visibility (element ID)Verify that an element with a specific ID is visible
Assert visibility (text)Verify that specific text is visible on screen
Detect audio playbackVerify that audio is currently playing

Device actions

CommandDescription
Set locationSet the device GPS location
Shake deviceSimulate a device shake (iOS only)
Match biometrySimulate a biometric authentication match

Network

CommandDescription
Execute cURL requestRun an HTTP request via cURL
Execute network call by selectorMake a network call and extract data using a JSON selector

Email

CommandDescription
Verify emailCheck for an email and follow a link matching a pattern

AI instructions

AI instructions use natural language to describe the action. They handle more complex scenarios and are the recommended approach for WebViews, visual assertions, and flows that are difficult to express as commands.
InstructionDescriptionExample
Tap onTaps on a specified element, text, or iconTap on "Login"
TypeTypes out specified textType "hello@example.com"
ScrollScrolls up or downScroll down, one screen at a time, until you see "Settings"
SwipeSwipes in a chosen directionSwipe left on the screen
SlideSlides a specified element in a directionSlide right, by 50% on the volume slider
CheckVerifies an element or text is visible (fails the test if not)Check that you are on a screen that displays "Welcome"
If / OtherwiseConditional logic based on screen stateIf "Accept" is displayed, tap on it, otherwise continue to the next step
RemoveTextRemoves existing text from an input fieldRemoveText: old value
RememberStores a value for use in later stepsRemember the code visible on the screen then later Type the remembered code
Task CompleteSucceeds the test when a condition is metTask Complete: when "Order confirmed" is visible
Error DetectedFails the test when a condition is metError Detected: when "Error" is visible on the screen
Execute: network requestPerforms an HTTP requestExecute: network request GET;url=...;json selector=...
Open DeeplinkOpens a deep link on the deviceOpen Deeplink: myapp://settings
Double TapTaps twice on an elementDouble tap on "Like"
Tap in sequenceFast taps multiple times on an elementTap in sequence 7 times on "+"
Long PressHolds down on an elementLong Press on "Message"
Press EnterPresses the Enter keyPress Enter
Go to Device Home ScreenNavigates to the device home screenGo to Device Home Screen
Shake the deviceShakes the device (iOS only)Shake the device
Verify EmailChecks email and follows a linkVerify email: email=test@example.com;link_pattern=verify
withVisionEnables visual assertions and actions based on visual cueswithVision: Verify the background color is red or withVision: Tap on any red Live button
Continue with next stepSkips to the next stepContinue with next step