Method: Selenium::WebDriver::Options#initialize

Defined in:
lib/selenium/webdriver/common/options.rb

#initialize(**opts) ⇒ Options

Returns a new instance of Options.



71
72
73
74
75
76
77
78
# File 'lib/selenium/webdriver/common/options.rb', line 71

def initialize(**opts)
  self.class.set_capabilities

  opts[:web_socket_url] = opts.delete(:bidi) if opts.key?(:bidi)

  @options = opts
  @options[:browser_name] = self.class::BROWSER
end