Method: Selenium::WebDriver::Remote::Capabilities#initialize

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

#initialize(opts = {}) ⇒ Capabilities

Returns a new instance of Capabilities.

Parameters:

  • :browser_name (Hash)

    a customizable set of options

  • :version (Hash)

    a customizable set of options

  • :platform (Hash)

    a customizable set of options

  • :javascript_enabled (Hash)

    a customizable set of options



82
83
84
85
86
87
# File 'lib/selenium/webdriver/remote/capabilities.rb', line 82

def initialize(opts = {})
  @browser_name       = opts[:browser_name]       || ""
  @version            = opts[:version]            || ""
  @platform           = opts[:platform]           || :any
  @javascript_enabled = opts[:javascript_enabled] || false
end