Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Appium Essentials

You're reading from   Appium Essentials Explore mobile automation with Appium and discover new ways to test native, web, and hybrid applications

Arrow left icon
Product type Paperback
Published in Apr 2015
Publisher
ISBN-13 9781784392482
Length 188 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Toc

Automating native apps


Native apps are basically developed for a particular platform and can take advantage of the device's features. One important point to note is that these apps can work even when you are offline. You can install them directly onto the device or through application stores, such as Google Play or the Apple App Store.

Android native apps

In the case of Android automation, the same code that was used in the previous chapter will work when testing with an emulator, but we need to remove the avd capabilities from the emulator automation code.

Here, we are going to take an example of the Android dialer app. In this section, we will make a call with the Android dialer app, which is shown in the following screenshot:

Let's start with the following steps to automate the dialer app:

  1. Set the desired capabilities to launch the dialer app, as follows:

      caps.setCapability(MobileCapabilityType.APP_PACKAGE, "com.android.dialer");
      caps.setCapability(MobileCapabilityType.APP_ACTIVITY, "com...
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 $19.99/month. Cancel anytime