使用 Capybara 测试 JQuery UI 自动完成功能Env.js 不起作用(使用 Selenium 可以起作用)

发布于 2024-09-26 03:06:26 字数 161 浏览 0 评论 0原文

我使用 Capybara 对 JQuery UI 自动完成功能进行了 RSpec 集成测试。当使用 Selenium(+ Firefox)作为 Capybara 的 Web 驱动程序时,一切正常,但是当切换到 Env.js 作为驱动程序时,我的测试失败了。这些是 Env.js 已知的缺点,还是我错过了什么?

I do an RSpec integration test of the JQuery UI autocomplete functionality by using Capybara. When using Selenium (+ Firefox) as the web driver for Capybara everything works as it should, but when switching to Env.js as driver my tests fail. Are those known shortcomings of Env.js, or do I miss something?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

好倦 2024-10-03 03:06:26

env.js 的 Ruby/Johnson 端口在事件支持方面存在一些漏洞,这些漏洞在使用 jquery 时往往会突然出现,尤其是最新版本(它更严重地依赖实时/冒泡事件)和 jquery.ui。

此外,自动完成功能尤其成问题,因为作为虚拟浏览器,env.js 没有键盘或鼠标来生成更改和焦点事件。

env.js 通常是由人们自行开发的,因此欢迎/鼓励您做出贡献。

The Ruby/Johnson port of env.js has some holes in event support that tend to crop up when using jquery, particularly the latest release, which relies more heavily on live/bubbled events, and jquery.ui.

Moreover, autocomplete is particularly problematic since as a virtual browser, env.js has no keyboard or mouse from which to generate change and focus events.

env.js is generally developed by people scratching their own itches, so you're welcome/encouraged to contribute.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文