Android-only capabilities

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); ...

Get Mobile Test Automation with Appium now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.