切换上下文时未定义 Android 6.x Webview [英] Android 6.x Webview undefined when switching context
问题描述
我正在尝试使用 appium 在 android (6.0.1) 中自动化移动应用程序.我收到错误
<块引用>没有找到这样的上下文.
从 Native 切换到 Webview 时,我得到的 Webview 为
<块引用>WEBVIEW_undefined
请帮忙.提前致谢
使用新的 UIautomator,您无需将驱动程序切换到 webview.它具有识别 webView 中元素的内置功能.</p>
请更新一次您的 Android SDK.
您还可以使用 UIAutomator 在 Android 6.0+ 设备上查看 webView 中的元素.
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
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.
这篇关于切换上下文时未定义 Android 6.x Webview的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!