vfirma
vfirma

Reputation: 370

A exception with a null response was thrown sending an HTTP request to the remote WebDriver server for URL

Error image

Getting this error when trying to run an instance of EdgeDriver for Selenium. I'm not getting an issue like this at all when running ChromeDriver. Unfortunately, I've been asked to use Edge for this, so I don't have a choice but to go with EdgeDriver. Some have suggested that the version of the WebDriver has to be the same as the windows. Mine do not match: my windows version: 1909 (18363.657) and my WebDriver (17.17134, latest from nuget package). Where might I find the latest version of this WebDriver? The latest ones I've found is the one on nuget. Is there a different fix?

EDIT:

Init Code:

 var edgeOptions = new EdgeOptions();
 edgeOptions.StartPage = url;
 EdgeDriver edgeDriver = new EdgeDriver(edgeOptions);

Browser: Microsoft Edge 44.18362.449 and Microsoft EdgeHTML 18.18363

Upvotes: 2

Views: 1985

Answers (2)

Manuel Miranda
Manuel Miranda

Reputation: 105

Is it the same version between the driver and your version of edge?. The Edge version can be checked on the Menú > Settings > About this app. This is a common error with the Selenium Web Driver, hope this helps you :)

Upvotes: 0

browsermator
browsermator

Reputation: 1354

You may just need to install the driver: "Microsoft WebDriver for Microsoft Edge version 18 is a Windows Feature on Demand. To install run the following in an elevated command prompt: DISM.exe /Online /Add-Capability /CapabilityName:Microsoft.WebDriver~~~~0.0.1.0": https://developer.microsoft.com/en-us/microsoft-edge/tools/webdriver/

Upvotes: 1

Related Questions