I am testing a Ionic/Cordova application using an Android emulator. When I attempt to switch to Webview the system reports the above error. I checked using the Mobile Spy I see child web views. (See Image below). Is there a reason this is not working?
I have discovered the issue with the XPath is that the Hybrid application must be able to use the Appium Driver ability to Switch to WebView. Our application in Ionic Cordova is a native wrapper with the web container inside.
Does anyone know what the switch to WebView would not work?
The issue has been identified. The chrome drive was to old in the emulator. I updated chrome to the latest version and web view now works.
How can update chrome driver in the Emulator
plz help on this…?
You will need to download the .apk file for chrome from the internet. A site I have used is:
Once you have downloaded the chrome installer that you require. I used Google Chrome: Fast & Secure 64.0.3282.137 by Google LLC . You may wish to select a new version if the emulator you are selecting support it.
Next follow these steps:
•Wait for emulator to boot.
•Download chrome-android.apk to your PC.
•Drag-drop apk to emulator screen
Once the emulator is setup you should be able to see your WebView.
I hope this help,