4
我想与使用RSPEC /水豚在FF中的对话框进行交互。水豚switch_to.alert(对话框)间歇性故障
发现在一个优雅的解决方案:How to test a confirm dialog with Cucumber?
page.driver.browser.switch_to.alert.accept
但是我们得到的间歇性故障时,开关不会发生。
任何人都遇到过这个?无论如何,以确保交换机总是成功?
谢谢!