我在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
任何人都知道为什么这会随机失败?