Android 6.x Webview undefined when switching context

和自甴很熟 提交于 2019-12-12 01:24:13

问题


I am trying to automate mobile app in android (6.0.1) using appium. i am getting error as

No such context found.

While switching from Native to Webview,I am getting Webview as

WEBVIEW_undefined

Please help.Thanks in advance


回答1:


With new UIautomator you don't need to switch your driver to webview. It has built in capabilities to identify the elements inside webView.

Please update your Android SDK once.

And also you can see the elements inside webView on Android 6.0+ devices using UIAutomator.



来源:https://stackoverflow.com/questions/41679673/android-6-x-webview-undefined-when-switching-context

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!