Edgedriver returns a 404 error

See original GitHub issue

2022-02-14_15-56-10

Since this weekend (02/12) we get an error when trying to initiate a driver for MSEdge: System.Net.WebException: The remote server returned an error: (404) Not Found.

What does this mean?

Edge browser version: 98.0.1108.50 Selenium version: 4.1.0 WebDriverManager version: 2.12.3

        public IWebDriver GetEdgeDriver()
        {
            _driverManager.SetUpDriver(new EdgeConfig());
            EdgeOptions options = new EdgeOptions
            {
                AcceptInsecureCertificates = true,
            };
            var edgeDriver = new EdgeDriver(options);
            edgeDriver.Manage().Window.Maximize();
            return edgeDriver;
        }

We did not change anything about our UITest setup. The driver for Chrome (also using WebDriverManager) works just fine.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:2
  • Comments:9 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
vthippscommented, Feb 15, 2022

For temporary solution we can try this also. You can match the browser version and download the drivers. new DriverManager().SetUpDriver(new EdgeConfig(), VersionResolveStrategy.MatchingBrowser);

1reaction
DBCOOPER90commented, Feb 16, 2022

@rosolko, yes that’s what I want, to download the latest driver and that’s what is failing. The source code indicates that is the Url it uses to get the latest driver. I have a full generic framework for qa automation and in it, I have a driver library that heavily relies on this nuget package since I don’t wanna be constantly updating my framework and updating all the projects that uses it.

I used to just do this :

var path = new WebDriverManager.DriverManager().SetUpDriver(new WebDriverManager.DriverConfigs.Impl.EdgeConfig());

then the path would be used to create a very specific edge service setup. Now in the mean time, I’ve decided to put this temporary patch until the main issue is fixed :

image

Read more comments on GitHub >

github_iconTop Results From Across the Web

WebDriverManager - 'The remote server returned an error
WebDriverManager - 'The remote server returned an error: (404) Not Found.' · 1. It appears that auto-update for Edge is broken. · Not...
Read more >
Windows Edge driver download fails with 404 · Issue #554
I think issue is resolved with version 4.2.2. The version again mismatches but at least error 404 does not lead to exception.
Read more >
The specified resource does not exist. on https://msedgedriver ...
Hi, I use python request library for checking version edge driver response ... It worked, but now it is returning status code 404....
Read more >
The remote server returned an error: (404) Not Found.
When I try to get the edge driver: var driverManager = new DriverManager(); driverManager.SetUpDriver(new EdgeConfig());. It fails with: System.Net ...
Read more >
404 Error in Edge with accessing MS Office Doc in Bb Learn ...
Open Edge settings. Select Downloads. Set Open Office files in the Browser to Off by clicking the toggle switch. Option 2: Right click...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found