I cannot get the code I have to go to the URL without having issues with the certificate. Here is the code I am trying:

else if (testMethod.BrowserType.Equals(BrowserType.FireFox))
                    var options = new FirefoxOptions();
                    options.BrowserExecutableLocation = @"C:\Program Files (x86)\Mozilla Firefox\firefox.exe";
                    options.LogLevel = FirefoxDriverLogLevel.Default;
                    options.Profile = new FirefoxProfile { AcceptUntrustedCertificates = true};
                    var service = FirefoxDriverService.CreateDefaultService();
                    _driver = new FirefoxDriver(service, options, TimeSpan.FromMinutes(30));

I still receive the generic page saying the connection is unsecured, any help on this would be appreciated.

Webdriver Version:

GeckoDriver Version: 0.11.1

Firefox Version: 49.0.2

1 Answer 1


Looks like it should be fixed in the next geckodriver version.
For more details check here.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.