Class: Selenium::WebDriver::Edge::Options

Inherits:
Chromium::Options show all
Defined in:
rb/lib/selenium/webdriver/edge/options.rb

Constant Summary collapse

KEY =
'ms:edgeOptions'
BROWSER =
'MicrosoftEdge'

Constants inherited from Chromium::Options

Chromium::Options::CAPABILITIES

Constants inherited from Options

Options::GRID_OPTIONS, Options::W3C_OPTIONS

Instance Attribute Summary

Attributes inherited from Chromium::Options

#extensions, #logging_prefs, #profile

Attributes inherited from Options

#options

Instance Method Summary collapse

Methods inherited from Chromium::Options

#add_argument, #add_emulation, #add_encoded_extension, #add_extension, #add_preference, #enable_android, #initialize

Methods inherited from Options

#==, #add_option, #as_json, chrome, edge, firefox, ie, #initialize, safari, set_capabilities

Constructor Details

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

Instance Method Details

#webview2!Object

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 WebDriver

Examples:

Enable webview2

options = Selenium::WebDriver::Edge::Options.new
options.webview2!


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

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