123456789_123456789_123456789_123456789_123456789_

Class: Selenium::WebDriver::Edge::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/edge/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_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

Constructor Details

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

Instance Method Details

#binary_path (private)

[ GitHub ]

  
# File 'rb/lib/selenium/webdriver/edge/options.rb', line 49

def binary_path
  Edge.path
end

#enable_logging(browser_options) (private)

[ GitHub ]

  
# File 'rb/lib/selenium/webdriver/edge/options.rb', line 45

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

#webview2!

Changes the browser name enable webview2 see: learn.microsoft.com/en-us/microsoft-edge/webview2/how-to/webdriver Automation of WebView2 apps with Microsoft Edge ::Selenium::WebDriver

Examples:

Enable webview2

options = Selenium::WebDriver::Edge::Options.new
options.webview2!
[ GitHub ]

  
# File 'rb/lib/selenium/webdriver/edge/options.rb', line 39

def webview2!
  @options[:browser_name] = 'webview2'
end