O'Reilly logo

Mobile Test Automation with Appium by Nishant Verma

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required