class Selenium::WebDriver::Edge::Options

Constants

BROWSER
KEY

Public Instance Methods

webview2!() click to toggle source

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

@example Enable webview2

options = Selenium::WebDriver::Edge::Options.new
options.webview2!
# File lib/selenium/webdriver/edge/options.rb, line 39
def webview2!
  @options[:browser_name] = 'webview2'
end

Private Instance Methods

binary_path() click to toggle source
# File lib/selenium/webdriver/edge/options.rb, line 49
def binary_path
  Edge.path
end
enable_logging(browser_options) click to toggle source
# File lib/selenium/webdriver/edge/options.rb, line 45
def enable_logging(browser_options)
  browser_options['ms:loggingPrefs'] = @logging_prefs
end