[Selenium] WebView2 in msedgedriver

I noticed https://docs.microsoft.com/en-us/microsoft-edge/webview2/howto/webdriver

The WebView2 is by Microsoft. I did not know it was able to automate with WebDiver. The automation name should be webview2 , the binary should be the app under test. Then, the msedgedriver launches the app under test and establish a connection to the WebView2.

So, something like below:

{
  "browserName": "webview2",
  "ms:edgeOptions": {
    "binary": "path/to/app.exe"
  }
}

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.