Share this article

Improve this guide

How to Fix Microsoft Edge WebDriver Unknown Error

3 min. read

Updated onSeptember 2, 2024

updated onSeptember 2, 2024

Share this article

Improve this guide

Read our disclosure page to find out how can you help Windows Report sustain the editorial teamRead more

If you’re a developer, you might’ve encounteredMicrosoftEdgeWebDriver unknownerrora couple of times on your PC.

Thiserrorwill interrupt your workflow and cause issues while developing your app, but there’s a way to fix this problem, and today we’re going to show you how to do that.

How can I fix Microsoft Edge WebDriver unknown error?

How can I fix Microsoft Edge WebDriver unknown error?

1. Install WebDriver manually

Once the driver is installed you just need to add the following code to your project:

var driver = new EdgeDriver(“C:\Windows\System32\”, edgeOptions);

2. Remove static modifier

IWebDriver Edge = new EdgeDriver();

After making these changes, theMicrosoft Edge WebDriver unknown errorshould be gone.

3. Stop all corresponding instances

foreach (var process in System.Diagnostics.Process.GetProcessesByName(“MicrosoftWebDriver”))

{

process.Kill();

}

Save changes and check if that solves your problem.

4. Pass the executable_path argument

browser= webdriver.Edge(executable_path=r’C:\ALTIUM_WORK\Altium_Python\MicrosoftWebDriver.exe')

Keep in mind that this solution works only with Python scripts.

Few users reported that this method works only if User Account Control is enabled, and you can do that by following these steps:

After doing that, the problem with the WebDriver will be resolved.

5. Use the verbose parameter

const Selenium = require(“selenium-webdriver”);

const BROWSER_NAME = Selenium.Browser.EDGE;

const builder = new Selenium.Builder().forBrowser(BROWSER_NAME)

.withCapabilities({

“browserName”: ‘MicrosoftEdge’,

“browserVersion”: ‘81.0’,

“platformName”: ‘Windows 10’,

‘ms:edgeChromium’: true

}).usingServer(‘http://localhost:9515’)

const driver = builder.build()

Keep in mind that this solution works only if you’re using Selenium.

To learn more about similar errors, ourTroubleshooting ‘WebDriver Cannot be Resolved’ – Step-by-step guideshould provide you with useful information.

This error is similar to the one mentioned in ourDriver cannot be resolvedin Selenium guide, so you might want to check it out for more solutions.

Microsoft Edge WebDriver unknown errormessage can cause a lot of problems for the developers, but you should be able to fix it using our solutions.

More about the topics:Microsoft Edge issues

Milan Stanojevic

Windows Toubleshooting Expert

Milan has been enthusiastic about technology ever since his childhood days, and this led him to take interest in all PC-related technologies. He’s a PC enthusiast and he spends most of his time learning about computers and technology.

Before joining WindowsReport, he worked as a front-end web developer. Now, he’s one of the Troubleshooting experts in our worldwide team, specializing in Windows errors & software issues.

User forum

0 messages

Sort by:LatestOldestMost Votes

Comment*

Name*

Email*

Commenting as.Not you?

Save information for future comments

Comment

Δ

Milan Stanojevic

Windows Toubleshooting Expert

Before joining WindowsReport, he worked as a front-end web developer. Now, he’s specialized in Windows errors & software issues.