Top Level Namespace
Defined Under Namespace
Modules: CapybaraExt, Mobility, NextInstanceOf, Spree Classes: BarAbility, DbMaximumLengthValidator, EmailValidator, OrderWalkthrough
Instance Method Summary collapse
Instance Method Details
#wait_for(options = {}) ⇒ Object
58 59 60 61 62 63 64 |
# File 'lib/spree/testing_support/capybara_ext.rb', line 58 def wait_for( = {}) = { error: nil, seconds: 5 }.merge() Selenium::WebDriver::Wait.new(timeout: [:seconds]).until { yield } rescue Selenium::WebDriver::Error::TimeoutError [:error].nil? ? false : raise([:error]) end |