Appium: How to get the WEB_VIEW from ionic based hybrid App? Appium: How to get the WEB_VIEW from ionic based hybrid App? selenium selenium

Appium: How to get the WEB_VIEW from ionic based hybrid App?


You need to enable setWebContentsDebuggingEnabled in android app. Please refer this link for enabling in android app.

Also, Once you get the WEB_VIEW you can directly find elements inside the Web View. For that, you need to update your Android SDK. The latest UIAutomator has inbuilt capabilities to find the elements inside web view without switching the context.

You need Android device with OS Version 6.0+ to automate the script and after automating the script you can use the same for devices with lower OS versions than 6.0.

I have already answered the similar question here. You can refer this.

I hope this helps :)