App Lifecycle

launchApp

To launch the app under test, simply write:
- launchApp
To launch an arbitrary app with a given id (package name on Android, bundle id on iOS), do:
- launchApp: appId
If you need to clear the app state before launching the app, specify a clearState flag
launchApp:
appId: "com.example.app"
clearState: true
clearKeychain: true # optional: clear *entire* iOS keychain
stopApp: false # optional (true by default): stop the app before launching it

stopApp

Stops current application if it is running:
- stopApp
You can also specify app id of the app to be stopped:
- stopApp: appId