水豚的方法,wait_until似乎不适用于水豚-webkit。有没有其他的解决方案,或者Javascript的实现?
我有意需要一些sleep的替代品,例如sleep 2。

发布于 2020-11-19 10:55:51
我真的不需要期望,因为它不是我需要测试的东西。
这对我很有效:
page.has_css?('.my-selector')
# or
page.has_content?('Some text on the page')
# continue with testhttps://stackoverflow.com/questions/24649483
复制相似问题