I'm learning Selenium WebDriver and trying to run a simple test using Firefox 50 and Webdriver 3.0.1. I'm using Marionette driver 0.11.1
I have the following code:
FirefoxDriverService service = FirefoxDriverService.CreateDefaultService(@"P:\Selenium Practice\FirefoxDriver", "wires.exe");
service.FirefoxBinaryPath = @"C:\Program Files\Mozilla Firefox\firefox.exe";
FirefoxOptions options = new FirefoxOptions();
options.AddAdditionalCapability(CapabilityType.AcceptSslCertificates, true);
TimeSpan time = TimeSpan.FromSeconds(10);
IWebDriver driver = new FirefoxDriver(service, options, time);
driver.Navigate().GoToUrl("http://www.demoqa.com");
When running it, I'm getting the following exception with error code 10022:
It says:"An unhandled exception of type 'System.Net.Sockets.SocketException' occurred in System.dll"
I'm not really getting what I'm doing wrong. I went throw a lot of suggestions and none of those really worked. The last one that I describe here is that one: Setting up Marionette/ GeckoDriver
What can I do to fix it?