There are many tools to automate your testing of Microsoft Edge:
Tool
Description
DevTools Protocol
Instrument, inspect, debug, and profile browsers including Microsoft Edge.
Origin trials
Try out experimental APIs on live sites for a limited period of time.
Playwright
The Playwright library provides cross-browser automation through a single API.
Puppeteer
The Puppeteer library provides a high-level API to control browsers, including Microsoft Edge, using the DevTools Protocol.
WebDriver
Automates testing in Microsoft Edge by simulating user interaction. Provides advantages over JavaScript unit tests.
webhint
Checks your code for best practices and common errors, to test and improve accessibility, performance, cross-browser and PWA compatibility, and security of your site.
These tools are described below.
DevTools Protocol
Use the DevTools Protocol to instrument, inspect, debug, and profile browsers, including Microsoft Edge. By building Microsoft Edge on the Chromium open-source project, the Microsoft Edge DevTools Protocol matches the APIs of the Chrome DevTools Protocol.
Use origin trials to try out experimental APIs on your own live site for a limited period of time. When using origin trials, users of Microsoft Edge that visit your site can run code that uses experimental APIs.
To see a list of the available origin trials and register your origin to try out any of the origin trials, see Microsoft Edge Origin Trials.
You can provide feedback to browser feature engineers and the web standards community about the design of the feature's API, your use-cases, or your experience with using the feature's API, by using the Issues tab in the browser feature's repo.
The Playwright library provides cross-browser automation through a single API. Playwright enables cross-browser web automation that is evergreen, capable, reliable, and fast.
Playwright launches browsers as headless, by default. Headless browsers don't display a UI; so generally you use the command line - however, you can also configure Playwright to run the full Microsoft Edge UI.
The Puppeteer library provides a high-level API to control Chromium-based browsers, including Microsoft Edge, using the DevTools Protocol.
Puppeteer launches headless browsers by default. Headless browsers don't display a UI, so you must use the command line. You can also configure Puppeteer to run full (non-headless) Microsoft Edge.
With Microsoft Edge, you can use puppeteer-core, a lightweight version of Puppeteer that launches an existing browser installation, like Microsoft Edge.
WebDriver allows you to automate Microsoft Edge by simulating user interaction. Tests that use WebDriver have some advantages over JavaScript unit tests that run in the browser:
Accesses functionality and information that's not available to JavaScript running in browsers.
Simulates user events or OS-level events more accurately than JavaScript unit tests.
Manages multiple windows, tabs, and webpages in a single test session.
Runs multiple sessions of Microsoft Edge on a specific machine.
Use webhint, a customizable linting tool, to improve the accessibility, performance, cross-browser compatibility, PWA compatibility, and security of your site. The webhint extension checks your code for best practices and common errors.
In this module, you'll learn how to use Playwright to test a sample web application. You'll learn how to run tests, view test reports, and understand the structure of a Playwright project. You'll also learn how to use Visual Studio Code to run tests, debug tests, and record new tests.
The webhint extension for Visual Studio Code is a customizable linting tool to improve the accessibility, performance, cross-browser compatibility, PWA compatibility, and security of your site. The extension checks your code for best practices and common errors.
Testing for coming changes that could impact compatibility of your site with Microsoft Edge. Moving users from Internet Explorer. Setting up tracking prevention. Detecting Microsoft Edge from your website. Detecting Windows 11 via User-Agent Client Hints.