Method: Selenium::WebDriver::Edge::Options#webview2!

Defined in:
lib/selenium/webdriver/edge/options.rb

#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 'lib/selenium/webdriver/edge/options.rb', line 39

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