Reputation: 21
This is my first question here so I apologize in advance if I haven't followed protocol in some fashion...
I'm getting the following exception when attempting to instantiate an instance of OpenQA.Selenium.Edge.EdgeDriver. I have separate .Net Core 2.2 and .Net Framework 4.7.2 applications and both get the same exception.
edgeDriver = new EdgeDriver();
This is the error message:
Message: OneTimeSetUp: OpenQA.Selenium.WebDriverException : Unexpected error. Unknown error
Stack Trace:
OpenQA.Selenium.WebDriverException : Unexpected error. Unknown error at
OpenQA.Selenium.Remote.RemoteWebDriver.UnpackAndThrowOnError(Response errorResponse) at
OpenQA.Selenium.Remote.RemoteWebDriver.Execute(String driverCommandToExecute, Dictionary`2 parameters) at
OpenQA.Selenium.Remote.RemoteWebDriver.StartSession(ICapabilities desiredCapabilities) at
OpenQA.Selenium.Remote.RemoteWebDriver..ctor(ICommandExecutor commandExecutor, ICapabilities desiredCapabilities) at OpenQA.Selenium.Edge.EdgeDriver..ctor(EdgeOptions options) at
OpenQA.Selenium.Edge.EdgeDriver..ctor() at
Selenium.EdgeTests.Setup()
Addtional information:
Windows 10 Pro v1903 (Developer Mode is on)
Edge v80.0.361.69(64-bit)
NUnit v3.12.0
NUnit3TestAdapter v3.16.1
Selenium Support v3.141.0
Selenium WebDriver v3.141.0
MicrosoftWebDriver.exe File & Product Version 10.0.17134.1
I have also tried adding Selenium.WebDriver.MicrosoftWebDriver v10.0.17134 and Selenium.WebDriver.MicrosoftDriver v17.17134.0, independently of each other, to no avail, same exception.
Upvotes: 1
Views: 1087
Reputation: 21
I'm posting this as an answer but the credit should go to @rfmodulator, as it was his suggestion.
I looked at https://learn.microsoft.com/en-us/microsoft-edge/webdriver-chromium and I was able to utilize the example under the 'Selenium 4.00-alpha03 and earlier' section with a little tweaking to resolve the deprecated DesiredCapabilities.
Upvotes: 1