Android 6.x 切换上下文时 Webview 未定义

Android 6.x Webview undefined when switching context

我正在尝试使用 appiumandroid (6.0.1) 中自动化移动应用程序。我收到错误

No such context found.

从本机切换到 Webview 时,我将 Webview 设置为

WEBVIEW_undefined

请提前help.Thanks

使用新的 UIautomator,您无需将驱动程序切换到 webview。它具有识别 webView 内部元素的内置功能。

请更新您的 Android SDK 一次。

您还可以在 Android 6.0+ 设备上使用 UIAutomator 查看 webView 中的元素。