lib/cucumber/pickles/helpers/waiter.rb in pickles-0.2.2 vs lib/cucumber/pickles/helpers/waiter.rb in pickles-0.2.3

- old
+ new

@@ -122,15 +122,15 @@ module Waiter module_function - def wait + def wait(errors = [Capybara::ElementNotFound]) wait_for_ajax return unless block_given? - page.document.synchronize do + page.document.synchronize(Capybara.default_max_wait_time, errors: errors) do yield end end def page