Class: Selenium::WebDriver::Timeouts
- Inherits:
-
Object
- Object
- Selenium::WebDriver::Timeouts
- Defined in:
- lib/selenium/webdriver/common/timeouts.rb
Instance Method Summary collapse
-
#implicit_wait=(seconds) ⇒ Object
Set the amount of time the driver should wait when searching for elements.
-
#initialize(bridge) ⇒ Timeouts
constructor
A new instance of Timeouts.
Constructor Details
#initialize(bridge) ⇒ Timeouts
Returns a new instance of Timeouts.
5 6 7 |
# File 'lib/selenium/webdriver/common/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/common/timeouts.rb', line 13 def implicit_wait=(seconds) @bridge.setImplicitWaitTimeout seconds * 1000 end |