Capybara synchronize with has_no_css?

前端 未结 3 1355
耶瑟儿~
耶瑟儿~ 2020-12-20 03:36

Since upgrading to Capybara 2.4, I\'ve been running into this issue. Previously, this block worked fine:

page.document.synchronize do
  page.should have_no_c         


        
3条回答
  •  执笔经年
    2020-12-20 04:10

    Since version of Capybara 2.0 you can customize inline wait time parameter to pass it into the #have_no_css method:

    page.should have_no_css('#ajax_indicator', visible: true, wait: 3)
    

提交回复
热议问题