Because WebView2 uses the Microsoft Edge (Chromium) web platform, WebView2 developers (you) may take advantage of standard web tooling for debugging and automation. Selenium is one such tool. It implements the W3C WebDriver API. You may use Selenium to create automated tests to simulate user interactions.
It took forever to complete and once done, I encountered many problems with sound and drivers and also that all my restore points had been deleted. My drivers are now all up to date, including those for Intel products. However I have yellow exclamation mark next to the Intel(R) Active Management Technology - SOL (COM3) in my Device Manager. There is an escalation of privilege vulnerability in Intel® Active Management Technology (AMT), Intel® Standard Manageability (ISM), and Intel® Small Business Technology versions firmware versions 6.x, 7.x, 8.x 9.x, 10.x, 11.0, 11.5, and 11.6 that can allow an unprivileged attacker to gain control of the manageability features provided. Start by saying you are the bus driver. You then read out a bus route, for example: You are the bus driver at stop no 1, three people got on the bus, one of them was wearing a red hat. At stop 2, four people got on and one got off. At stop 3, two people got on, one person was carring a bag and the person with the red hat got off. Vision Development Module (VDM) is designed to help you develop machine vision applications using LabVIEW or C/C and deploy those applications to Windows or NI Linux Real-Time hardware. With its comprehensive function library, you can access hundreds of image processing algorithms and machine vision functions to enhance images, check for.
Get started with the following steps.
Step 1: Download WebView2API Sample
If you do not have an existing WebView2 project, download the WebView2API Sample app, a comprehensive sample of the latest WebView2 SDK. Ensure you have satisfied the prerequisites for the WebView2API Sample app.
Once you have cloned the repo, build the project in Visual Studio. It should look like the following figure.
Step 2: Install Microsoft Edge Driver
Follow the instructions to install Microsoft Edge Driver the browser-specific driver required by Selenium to automate and test WebView2.
Ensure that the version of Microsoft Edge Driver matches the version of WebView2 Runtime that you app uses. For the WebView2API Sample to work, make sure that your version of WebView2 Runtime is greater than or equal than the supported version of the latest WebView2 SDK release. To locate the latest WebView2 SDK release, navigate to WebView2 release notes. To find out what version of WebView2 Runtime you currently have, navigate to edge://settings/help.
Step 3: Add Selenium to the WebView2API Sample
At this point you should have WebView2 Runtime installed, built a WebView2 project, and installed Microsoft Edge Driver. Now, get started using Selenium.
Note
Selenium supports C#, Java, Python, Javascript, and Ruby. However, the following guide is written using C#.

Start by creating a new C# .NET Framework project in Visual Studio. Choose Next on the bottom right-hand corner to continue.
Give your project a name, save it to your preferred location, and choose Create.
A new project is created. In this guide, all code is written to the
Program.csfile.Now add Selenium to the project. Install Selenium using the Selenium.WebDriver NuGet package.
To download the Selenium.WebDriver NuGet package, in Visual Studio, hover over Project, and choose Manage NuGet Package. The following screen should appear.
Enter
Selenium.WebDriverin the search bar, choose Selenium.WebDriver from the results, and make sure to checkmark the box next to include pre-release. On the right-hand side window, ensure the Version is set to install 4.0.0-alpha04 or later and choose Install. NuGet downloads Selenium to your machine.To learn more about the Selenium.WebDriver NuGet package, navigate to Selenium.WebDriver 4.0.0-alpha04.
Use
OpenQA.Selenium.Edgeby adding the following statement:using OpenQA.Selenium.Edge;at the beginning ofProgram.csfile.
Step 4: Drive WebView2 with Selenium and Microsoft Edge Driver
First, create the
EdgeOptionsobject, by copying the following code snippet.The
EdgeOptionsobject takes in the following two parameters.Parameter Details is_legacySet to false, which tells Selenium that you are driving the new Chromium-based Microsoft Edge browser.'webview2'A string that tells Selenium you are driving WebView2. Next, set
edgeOptions.BinaryLocationto the file path of your WebView2 project runtime, create a string namedmsedgedriverDirthat provides the file path to where you installed Microsoft Edge Driver, and create a string namedmsedgedriverExeto store the name of the Microsoft Edge Driver runtime. By default, the runtime is namedmsedgedriver.exe. Use these two strings to construct theEdgeDriverServiceobject as shown below. Finally, create theEdgeDriverobject usingEdgeDriverServiceandEdgeOptions.You may copy and paste the following code underneath
edgeOptions. Ensure you specify the correct file paths to your project runtime and the Microsoft Edge Driver runtime on your machine.Now,
EdgeDriveris configured to drive the WebView2 in your project. For example, if you are using the WebView2API Sample, you may navigate tohttps://microsoft.comby running thee.Url = @'https://www.microsoft.com';command. Verify the Selenium drive WebView2 by setting a breakpoint on the line and running the project.
Active Driver For Active Inspire

Congratulations. You have successfully automated a WebView2 project and driven WebView2 using Selenium and Microsoft Edge Driver.
See also
- For a comprehensive look at how the APIs Selenium drives WebView2 or Microsoft Edge (Chromium), navigate to WebDriver on Selenium documentation
- To learn more about WebView2 control and how to use it when embedding web content in your native app, navigate to Introduction to Microsoft Edge WebView2.
- To learn more about automating Microsoft Edge (Chromium), navigate to Use WebDriver (Chromium) for test automation
Getting in touch with the Microsoft Edge WebView team
Active Driver Download

Active Development Drivers
Share your feedback to help build richer WebView2 experiences. To submit feature requests or bugs, or search for known issues, see the Microsoft Edge WebView feedback repo.
