Book Image

Appium Essentials

Book Image

Appium Essentials

Overview of this book

Table of Contents (14 chapters)

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, "");
      caps.setCapability(MobileCapabilityType.APP_ACTIVITY, "com...