Navigation & Device
Steps for pressing buttons, navigating back/home, opening deep links, setting GPS location, and clearing app state.
pressButton
Press a hardware or software button.
Parameters
Example
back
Press the back button. Shorthand for pressButton: { button: BACK }.
No parameters.
Example
home
Press the home button. Shorthand for pressButton: { button: HOME }.
No parameters.
Example
hideKeyboard
Dismiss the keyboard. Sends Escape key (HID 41) on iOS and BACK on Android.
No parameters.
Example
openDeepLink
Open a deep link.
Parameters
Example
setLocation
Set GPS location on the simulator (iOS) or emulator (Android).
Parameters
Example
Tips
- iOS: All simulators supported (
idb set-location). - Android: Emulator only.
adb emu geo fixdoes not work on physical devices.
clearState
Clear app data or reset permissions.