Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletter Hub
Free Learning
Arrow right icon
timer SALE ENDS IN
0 Days
:
00 Hours
:
00 Minutes
:
00 Seconds
Arrow up icon
GO TO TOP
Mobile Test Automation with Appium

You're reading from   Mobile Test Automation with Appium Mobile application testing made easy

Arrow left icon
Product type Paperback
Published in Jun 2017
Publisher Packt
ISBN-13 9781787280168
Length 256 pages
Edition 1st Edition
Tools
Arrow right icon
Author (1):
Arrow left icon
 Verma Verma
Author Profile Icon Verma
Verma
Arrow right icon
View More author details
Toc

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

appWaitPackage

Used to specify the Java package of the Android app you want to wait for.

capabilities.setCapability("appWaitPackage", com.example.android.myApp);

appWaitDuration

Used to specify timeout in milliseconds used to wait for the appWaitActivity to launch (default is 20000)...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime
Visually different images