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

- old
+ new

@@ -28,11 +28,12 @@ def initialize(opts = {}) port = opts.delete(:port) || Service::DEFAULT_PORT opts[:desired_capabilities] ||= Remote::Capabilities.phantomjs unless opts.key?(:url) + driver_path = opts.delete(:driver_path) || PhantomJS.path(false) args = opts.delete(:args) || opts[:desired_capabilities]['phantomjs.cli.args'] - @service = Service.new(PhantomJS.path, port, *args) + @service = Service.new(driver_path, port, *args) @service.start opts[:url] = @service.uri end super(opts)