Syntax
npx @nightwatch/mobile-helper android install FLAG [configs]
Run the below command to install an APK on a real device or an AVD:
npx @nightwatch/mobile-helper android install --app
# with configs
npx @nightwatch/mobile-helper android install --app [--deviceId <device_id>] [--path <path_to_apk>]
Configs
Config | Description |
---|---|
--deviceId | -s <device_id> | Id of the device to install the APK to |
--path | -p <path_to_apk> | Path to the APK file relative to the current working directory |
Run the below command to create a new AVD:
npx @nightwatch/mobile-helper android install --avd