Hybrid apps are 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 give us a cross-platform solution and display the content they get from the Web.
Here, we are going to take an example of testApp
; you can get it from https://github.com/manojhans/Appium/blob/master/Application/Android/testApp.zip?raw=true.
If you are working with an Android version less than 4.4, then you have to use Selendroid (in that case, you have to set the capability as caps.setCapability (MobileCapabilityType.AUTOMATION_NAME,"Selendroid")
), otherwise Appium has a built-in support through 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 the changes in testApp
. Initially, we will get the testApp as shown in following screenshot...