Book Image

Appium Essentials

Book Image

Appium Essentials

Overview of this book

Table of Contents (14 chapters)

Automating hybrid apps


A hybrid app is a combination of native and web apps. Similar to native apps, you can get hybrid apps through an application store. Nowadays, hybrid apps are very popular because they provide a cross-platform solution and display the content that they get from the Web rather than the contents installed on the device only.

Android hybrid apps

Here, we will take an example of the Hybridtestapp; you can get it from https://github.com/manojhans/Appium/blob/master/Application/Android/Hybrid/Hybridtestapp.zip?raw=true.

If you are working with an Android version higher than 4.4, then you have to use Selendroid (in that case, you have to set the capability as (MobileCapabilityType.AUTOMATION_NAME,"Selendroid")); otherwise, Appium has built-in support through the ChromeDriver.

While working with hybrid apps, you need to make the changes defined at https://developer.chrome.com/devtools/docs/remote-debugging#configure-webview. We have already made these changes in Hybridtestapp....