Running a Web UI test in the Microsoft Edge browser
Web UI tests recorded in Internet Explorer, Mozilla Firefox or Google Chrome browsers can be run in Microsoft Edge browser. You cannot record Web UI tests in Edge.
Before you begin
Before you can run a Web UI test in Edge, you must install Microsoft™ WebDriver for the Edge browser. For a list of supported versions of Microsoft
WebDriver on specific Windows 10 builds, see this document.
Note: You need to configure the environment variable only for Edge 42 or
earlier. For newer versions of the Edge browser, you need not configure the environment
variable. If the environment is configured for newer versions of Edge browser, Web UI tests do
not run successfully. To play back Web UI tests successfully, you must delete the environment
variable that is configured for the Edge browser that is later than 42.
About this task
After the WebDriver is installed, you can see the Edge browser in the list of available browsers, in the playback wizard, and execute the tests on the browser.
Procedure
To enable the Edge browser, follow these steps:
-
To automatically install the Microsoft™ WebDriver for
Edge 44, run the following command in the elevated command prompt: DISM.exe /Online
/Add-Capability /CapabilityName:Microsoft.WebDriver~~~~0.0.1.0
Note: To install WebDriver for Edge 42 and earlier, follow these steps:
- Download and install the latest version of Microsoft WebDriver server in the default location for both 32-bit and 64-bit Windows 10 computers. https://developer.microsoft.com/en-us/microsoft-edge/tools/webdriver
- If you install the WebDriver in another location, set the environment variable named webdriver.edge.driver with the full path to the installation file named MicrosoftWebDriver.exe.
-
Follow these steps to set the environment variable for Edge 42 and earlier, if you have
installed the WebDriver in another location.
- In the Control Panel, click .
- In System Variables, click New, and in Variable name, enter webdriver.edge.driver.
- In the Variable value field, enter the path to the MicrosoftWebDriver.exe and click OK.