I am using the Selenium WebDriverManager nuget package to manage driver versions. When I try to get the edge driver:
var driverManager = new DriverManager();
driverManager.SetUpDriver(new EdgeConfig());
It fails with:
System.Net.WebException: 'The remote server returned an error: (404) Not Found.'
I've tried updating my nuget packages which didn't help. I also found a related but unanswered question about Chrome driver - System.Net.WebException : The remote server returned an error: (404) Not Found
Any idea what is causing this error and how to fix it?
This solution worked for me, I just had to add VersionResolveStrategy.MatchingBrowser
parameter to the initialization of the driver, then it can find and download the matching version from the server:
new DriverManager().SetUpDriver(new EdgeConfig(), VersionResolveStrategy.MatchingBrowser);