切换上下文时未定义 Android 6.x Webview [英] Android 6.x Webview undefined when switching context

查看:29
本文介绍了切换上下文时未定义 Android 6.x Webview的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用 appiumandroid (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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆