When we are performing Android app automation, there are a bunch of Android-specific capabilities that can be used to set the session. Here's a complete list of Android-only capabilities:
Capability | Description and values |
appActivity |
Used to specify the activity name for the Android activity you want to launch from your package. capabilities.setCapability("appActivity", MainActivity); |
appPackage |
Used to specify the Java package name of the Android app you want to run. capabilities.setCapability("appPackage", com.example.android.mySampleApp); |
appWaitActivity |
Used to specify the activity name for the Android activity you want to wait for. capabilities.setCapability("appWaitActivity", SplashActivity); ... |