Class: Selenium::WebDriver::Timeouts

Inherits:
Object
  • Object
show all
Defined in:
lib/selenium/webdriver/timeouts.rb

Instance Method Summary collapse

Constructor Details

#initialize(bridge) ⇒ Timeouts

Returns a new instance of Timeouts.


5
6
7
# File 'lib/selenium/webdriver/timeouts.rb', line 5

def initialize(bridge)
  @bridge = bridge
end

Instance Method Details

#implicit_wait=(seconds) ⇒ Object

Set the amount of time the driver should wait when searching for elements.


13
14
15
# File 'lib/selenium/webdriver/timeouts.rb', line 13

def implicit_wait=(seconds)
  @bridge.setImplicitWaitTimeout seconds * 1000
end