123456789_123456789_123456789_123456789_123456789_

Class: Selenium::WebDriver::Chrome::Options

Relationships & Source Files
Super Chains via Extension / Inclusion / Inheritance
Class Chain:
Instance Chain:
Inherits: Selenium::WebDriver::Chromium::Options
Defined in: rb/lib/selenium/webdriver/chrome/options.rb

Constant Summary

::Selenium::WebDriver::Options - Inherited

GRID_OPTIONS, W3C_OPTIONS

::Selenium::WebDriver::Chromium::Options - Inherited

CAPABILITIES

Class Attribute Summary

Class Method Summary

Instance Attribute Summary

::Selenium::WebDriver::Chromium::Options - Inherited

#extensions

NOTE: special handling of 'extensions' to validate when set instead of when used.

#extensions=

Add an extension by local path.

#logging_prefs, #profile

::Selenium::WebDriver::Options - Inherited

Instance Method Summary

::Selenium::WebDriver::Chromium::Options - Inherited

#add_argument

Add a command-line argument to use when starting ::Selenium::WebDriver::Chrome.

#add_chromium_option

Add a Chromium-specific capability nested in the browser options object (e.g. goog:chromeOptions / ms:edgeOptions) that is not yet exposed through a dedicated method.

#add_emulation

Add emulation device information.

#add_encoded_extension

Add an extension by Base64-encoded string.

#add_extension

Add an extension by local path.

#add_preference

Add a preference that is only applied to the user profile in use.

#enable_android

Enables mobile browser use on Android.

::Selenium::WebDriver::Options - Inherited

#==,
#add_option

Add a new option not yet handled by bindings.

#as_json,
#enable_bidi!

Enables WebDriver ::Selenium::WebDriver::BiDi by requesting the W3C webSocketUrl capability.

#eql?

Alias for Options#==.

#camel_case, #camelize?, #convert_json_key, #generate_as_json,
#merge_browser_options

Preserve a hand-built vendor options hash (e.g.

#process_browser_options, #process_json_hash, #process_unhandled_prompt_behavior_value, #process_w3c_options, #w3c?

Constructor Details

This class inherits a constructor from Selenium::WebDriver::Chromium::Options

Instance Method Details

#binary_path (private)

[ GitHub ]

  
# File 'rb/lib/selenium/webdriver/chrome/options.rb', line 35

def binary_path
  Chrome.path
end

#enable_logging(browser_options) (private)

[ GitHub ]

  
# File 'rb/lib/selenium/webdriver/chrome/options.rb', line 31

def enable_logging(browser_options)
  browser_options['goog:loggingPrefs'] = @logging_prefs
end