Class: Spreewald::CapybaraWrapper

Inherits:
Object
  • Object
show all
Defined in:
lib/spreewald_support/capybara_wrapper.rb

Class Method Summary collapse

Class Method Details

.default_max_wait_timeObject



3
4
5
6
7
8
9
# File 'lib/spreewald_support/capybara_wrapper.rb', line 3

def self.default_max_wait_time
  if Capybara.respond_to?(:default_max_wait_time)
    Capybara.default_max_wait_time
  else
    Capybara.default_wait_time
  end
end

.default_max_wait_time=(value) ⇒ Object



11
12
13
14
15
16
17
# File 'lib/spreewald_support/capybara_wrapper.rb', line 11

def self.default_max_wait_time=(value)
  if Capybara.respond_to?(:default_max_wait_time=)
    Capybara.default_max_wait_time = value
  else
    Capybara.default_wait_time = value
  end
end