Calabash Android:无法查询WebView的子类

时间:2021-09-17 19:59:10

I am currently attempting to use calabash-android to query the HTML content of a webview.

我目前正在尝试使用calabash-android来查询webview的HTML内容。

This webview is a custom subclass of android.webkit.WebView.

此webview是android.webkit.WebView的自定义子类。

When I perform query ("webView") using the calabash-android I receive no results. When I perform query ("MyCustomWebView") the custom webview is returned, however, trying to perform a query such as query('MyCustomWebView css: "*"') the app crashes and the console sees connection refused.

当我使用calabash-android执行查询(“webView”)时,我没有收到任何结果。当我执行查询(“MyCustomWebView”)时,返回自定义webview,但是,尝试执行诸如查询('MyCustomWebView css:“*”')之类的查询,应用程序崩溃并且控制台看到连接被拒绝。

Calabash-android Version: 0.5.8 Tested on Android Emulators: Nexus 5 5.0, Nexus 5 5.1 (All architectures)

Calabash-android版本:0​​.5.8在Android仿真器上测试:Nexus 5 5.0,Nexus 5 5.1(所有架构)

1 个解决方案

#1


This is fixed in calabash-android 0.5.12

这是在calabash-android 0.5.12中修复的

#1


This is fixed in calabash-android 0.5.12

这是在calabash-android 0.5.12中修复的