Sha256: a9391259e41590607b187e861ef6696f22215c01e2c6b183a115e88cbc3c69ab
Contents?: true
Size: 328 Bytes
Versions: 19
Compression:
Stored size: 328 Bytes
Contents
module AjaxHelpers def wait_for_ajax Timeout.timeout(Capybara.default_max_wait_time) do loop until finished_all_ajax_requests? end end def finished_all_ajax_requests? if page.driver.is_a? Capybara::RackTest::Driver true else page.evaluate_script("jQuery.active").zero? end end end
Version data entries
19 entries across 19 versions & 1 rubygems