Search code examples
webviewautomationselenium-chromedriverappiumui-automation

Is it possible to switch context to WebView when run automation tests with real android device on mac?


I've an issue to run on automation tests with real android device for Hybrid application on mac. I'm using appium and get the following error when trying to switch context from native to WebView:

Original error: chrome not reachable

Is it possible to switch context to WebView when run automation tests on real android device from mac?


Solution

  • The issue might be due to the default web browser used in the Android phone. In the phones which have a different web browser like Samsung Web Browser in Samsung phones, the default browser won't be set to Chrome. In this case, please set the default browser to Chrome and restart the phone once. Webviews will now start opening using Chrome.