Active Development Driver
To command to set development active profile is given below − You can see active profile name on the console log as shown below − 2017-11-26 08:41:37.202 INFO 14104 - main com.tutorialspoint.demo.DemoApplication: The following profiles are active: dev Now, Tomcat started on the port 9090 (http) as shown below −. This page contains drivers for USB Video Capture Device manufactured by Active Development™. Please note we are carefully scanning all the content on our website for viruses and trojans. This and other Sound Cards drivers we're hosting are 100% safe. Vendor: Active Development™ Device: USB Video Capture Device.
- This package installs the Windows 10 (64-bit) Intel Active Management Technology (AMT) driver. Intel Active Management Technology (AMT) is hardware and firmware technology for remote out-of-band management of personal computers, in order to monitor, maintain, update, upgrade, and repair them.
- This page contains drivers for USB Video Capture Device manufactured by Active Development™. Please note we are carefully scanning all the content on our website for viruses and trojans. This and other Sound Cards drivers we're hosting are 100% safe. Vendor: Active Development™ Device: USB.
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.
Active Driver For Active Inspire
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.
Active Development Drivers
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.cs
file.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.WebDriver
in 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.Edge
by adding the following statement:using OpenQA.Selenium.Edge;
at the beginning ofProgram.cs
file.
Active Driver Download
Step 4: Drive WebView2 with Selenium and Microsoft Edge Driver
First, create the
EdgeOptions
object, by copying the following code snippet.The
EdgeOptions
object takes in the following two parameters.Parameter Details is_legacy
Set 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.BinaryLocation
to the file path of your WebView2 project runtime, create a string namedmsedgedriverDir
that provides the file path to where you installed Microsoft Edge Driver, and create a string namedmsedgedriverExe
to store the name of the Microsoft Edge Driver runtime. By default, the runtime is namedmsedgedriver.exe
. Use these two strings to construct theEdgeDriverService
object as shown below. Finally, create theEdgeDriver
object usingEdgeDriverService
andEdgeOptions
.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,
EdgeDriver
is configured to drive the WebView2 in your project. For example, if you are using the WebView2API Sample, you may navigate tohttps://microsoft.com
by running thee.Url = @'https://www.microsoft.com';
command. Verify the Selenium drive WebView2 by setting a breakpoint on the line and running the project.
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
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.