I'm running Appium on Mac to test an Android Native App directly on an Android device. However, when I try to fetch the contexts and switch to the one containing WEBVIEW (When I use UIAutomator
or Chrome DevelopTool Inspector
, It do exist named as android.webkit.WebView
), But when I try todriver.switch_to.context('WEBVIEW')
it gives me No Context...
only returns one context, NATIVE_APP
.
When I use the inspector, I'm able to see a WebView and a lot of View children appended to it, which relate to each one of the elements inside the app. So, despite it doesn't show the element tree in Web view mode, I'm able to see it's using a WebView, but somehow isn't able to connect to that specific context.
I find some guy provide that change the desire_capability['automationName']='Selendroid'
it does not work for me due to my other native elements could not be found any longer if it changes.
platform : Android
version : 5.1.1
device: real android device
Any ideas about this, please?