I am trying to automate a hybrid Android app on Appium 1.4.x/1.5.x, but cannot see any controls (using either Inspector or with code) inside the web view, even though:
- The app does call
Webview.setWebContentsDebuggingEnabled(true)
. - The
android.webkit.WebView
control is visible and inspectable inchrome://inspect
. - The
android.webkit.WebView
control itself is visible in Appium Inspector and the context is set to the sole webview context.
Now, I take the ApiDemos (in the Appium submodules) and try to not see any controls inside of android.webkit.WebView
while using the same environment and configuration. Unfortunately, I do see controls inside the android.webkit.WebView
controls using Appium Inspector even though:
- I comment out all the calls to
Webview.setWebContentsDebuggingEnabled(true)
. - The
android.webkit.WebView
controls are not visible or inspectable inchrome://inspect
. - Appium Inspector using the default context.
I have automated several hybrid Android apps with no issue, so seeing behavior exactly opposite of what should happen is baffling. What am I doing missing here?