lib/selenium/webdriver/ie/bridge.rb in selenium-webdriver-3.0.1 vs lib/selenium/webdriver/ie/bridge.rb in selenium-webdriver-3.0.2

- old
+ new

@@ -27,10 +27,12 @@ class Bridge < Remote::Bridge def initialize(opts = {}) port = opts.delete(:port) || Service::DEFAULT_PORT service_args = opts.delete(:service_args) || {} service_args = match_legacy(opts, service_args) - @service = Service.new(IE.driver_path, port, *extract_service_args(service_args)) + driver_path = opts.delete(:driver_path) || IE.driver_path(false) + + @service = Service.new(driver_path, port, *extract_service_args(service_args)) @service.start opts[:url] = @service.uri caps = opts[:desired_capabilities] ||= Remote::Capabilities.internet_explorer caps[:ignore_protected_mode_settings] = true if opts.delete(:introduce_flakiness_by_ignoring_security_domains)