Module: Selenium::WebDriver::Remote::Driver Private

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

Overview

This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.

Driver implementation for remote server.

Class Method Summary collapse

Class Method Details

.new(**opts) ⇒ Object

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.


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

def self.new(**opts)
  listener = opts.delete(:listener)
  bridge = Bridge.handshake(opts)
  if bridge.dialect == :w3c
    W3C::Driver.new(bridge, listener: listener)
  else
    OSS::Driver.new(bridge, listener: listener)
  end
end