Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有没有办法测试链接或按钮是否需要用户在功能规范中确认?
我正在寻找不需要硒的解决方案。
我知道应该可以测试是否有 data-confirm 属性,但是是否有一种更简化的方法来做它与实施的联系较少?
对于水豚
page.driver.browser.accept_js_confirms page.driver.dismiss_js_confirms!
还有更多请查看
https://github.com/thoughtbot/capybara-webkit