Method: Selenium::WebDriver::Driver#initialize
- Defined in:
- lib/selenium/webdriver/common/driver.rb
permalink #initialize(bridge) ⇒ Driver
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
A new Driver instance with the given bridge. End users should use Selenium::WebDriver.for instead of using this directly.
53 54 55 56 57 58 59 60 |
# File 'lib/selenium/webdriver/common/driver.rb', line 53 def initialize(bridge) @bridge = bridge # TODO: refactor this away unless bridge.driver_extensions.empty? extend(*bridge.driver_extensions) end end |