Module: Selenium::WebDriver::Firefox::Driver

Defined in:
lib/selenium/webdriver/firefox/driver.rb

Class Method Summary collapse

Class Method Details

.new(**opts) ⇒ Marionette::Driver, Legacy::Driver

Instantiates correct Firefox driver implementation



31
32
33
34
35
36
37
# File 'lib/selenium/webdriver/firefox/driver.rb', line 31

def new(**opts)
  if marionette?(opts)
    Firefox::Marionette::Driver.new(opts)
  else
    Firefox::Legacy::Driver.new(opts)
  end
end