Method: Capybara.using_wait_time

Defined in:
lib/capybara.rb

.using_wait_time(seconds) ⇒ Object

Yield a block using a specific wait time



302
303
304
305
306
307
308
# File 'lib/capybara.rb', line 302

def using_wait_time(seconds)
  previous_wait_time = Capybara.default_max_wait_time
  Capybara.default_max_wait_time = seconds
  yield
ensure
  Capybara.default_max_wait_time = previous_wait_time
end