EdgeDriver method in C# looking for MicrosoftWebDriver.exe

Ashish Mahajan 0 Reputation points
2024-01-04T11:05:32.8333333+00:00

When using EdgeDriver method in C#, it searches for "MicrosoftWebDriver.exe" by default, but it's important to note that the actual Edge driver file is named "msedgedriver.exe" by default.

Microsoft Edge | Microsoft Edge development
{count} votes

1 answer

Sort by: Most helpful
  1. Wenying Lu-MSFT 2,090 Reputation points Microsoft External Staff
    2024-01-05T08:41:06.32+00:00

    Hi @Ashish Mahajan ,

    What is the selenium and edge version you're using?

    The EdgeDriver method in C# requires a valid Microsoft Edge WebDriver to communicate with the browser.

    First, install the latest C# Selenium WebDriver from here.

    Second, download the matching version of Microsoft Edge Driver from this page.

    If the problem persists, could you please share us more details (such as error code or error message)?


    Update: Where is the download path you specified? After the download matching version of Microsoft Edge Driver, extract the msedgedriver executable to your preferred location. Add the folder where the executable is located to your PATH environment variable. You could refer to this doc.


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    Best Regards,

    Wenying Lu


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.