lib/selenium/webdriver/firefox/w3c_bridge.rb in selenium-webdriver-3.0.1 vs lib/selenium/webdriver/firefox/w3c_bridge.rb in selenium-webdriver-3.0.2

- old
+ new

@@ -25,10 +25,11 @@ def initialize(opts = {}) port = opts.delete(:port) || Service::DEFAULT_PORT opts[:desired_capabilities] = create_capabilities(opts) service_args = opts.delete(:service_args) || {} - @service = Service.new(Firefox.driver_path, port, *extract_service_args(service_args)) + driver_path = opts.delete(:driver_path) || Firefox.driver_path(false) + @service = Service.new(driver_path, port, *extract_service_args(service_args)) @service.start opts[:url] = @service.uri super(opts) end