If you’re a developer, you might’ve encountered Microsoft Edge WebDriver unknown error a couple of times on your PC.

  • In order to develop web apps, sometimes you need to rely on certain Windows components.Many users reported Microsoft Edge WebDriver unknown error but fixing it is easier than you think.Want to learn more about programming? This Computer programming article has all the information you need.For more Microsoft Edge guides and fixes, we suggest visiting our Edge Hub.

  • Easy migration: use the Opera assistant to transfer exiting data, such as bookmarks, passwords, etc.

  • Optimize resource usage: your RAM memory is used more efficiently than Chrome does

  • Enhanced privacy: free and unlimited VPN integrated

  • No ads: built-in Ad Blocker speeds up loading of pages and protects against data-mining

  • Download Opera

This error will 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?

1. Install WebDriver manually

  • Press Windows Key + S and enter optional. Select Manage optional features from the list of results.
  • Click the Add a feature button.
  • Select Microsoft WebDriver and click the Install button.

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

  • Open your project.
  • Now locate the WebDriver initialization and change it like this:

IWebDriver Edge = new EdgeDriver();

After making these changes, the Microsoft Edge WebDriver unknown error should be gone.

3. Stop all corresponding instances

  • Open your project.
  • Now add this code:

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

  • Open your project.
  • Add the following line of code:

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:

  • Press Windows Key + S and enter the user account. Select Change User Account Control settings from the search results.
  • Move the slider to the recommended position and click OK to save changes.
  • Restart your computer.

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

5. Use the verbose parameter

  • Open Command Prompt and run the following command: msedgedriver.exe –verbose
  • Now run the script normally in other Command Prompt:

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.

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

If the advices above haven’t solved your issue, your PC may experience deeper Windows problems. We recommend downloading this PC Repair tool (rated Great on TrustPilot.com) to easily address them. After installation, simply click the Start Scan button and then press on Repair All.

Still having issues? Fix them with this tool:

SPONSORED

  • Microsoft Edge issues

Email *

Commenting as . Not you?

Comment