Capybara / PhantomJS客户端在处理过程中死亡

时间:2014-12-10 09:33:54

标签: cucumber capybara phantomjs

我在CI上随机收到此错误

PhantomJS client died while processing {"name":"evaluate","args":["jQuery.active"]} (Capybara::Poltergeist::DeadClient)

此功能发生错误:

def wait_for_ajax
    Timeout.timeout(Capybara.default_wait_time) do
      element = false
      until element do
        begin
          element = page.evaluate_script('jQuery.active') == 0
        end
      end
    end
  end

任何人都知道为什么这会随机失败?

0 个答案:

没有答案