I am using Marionette / Geckodriver v9.0 for mac with selenium jar 2.53.1. When it opens firefox 47 I'm getting the error that "Your connection is not secure". The code I'm using to create the driver is:
FirefoxProfile firefoxProfile = null;
firefoxProfile = new FirefoxProfile();
firefoxProfile.setAcceptUntrustedCertificates(true);
firefoxProfile.setAssumeUntrustedCertificateIssuer(false);
DesiredCapabilities capability = DesiredCapabilities.firefox();
capability.setCapability("marionette", true);
capability.setCapability(FirefoxDriver.PROFILE, firefoxProfile);
capability.setCapability("handlesAlerts", true);
return new MarionetteDriver(capability);
So, how do I get it to add my website as an exception or turn off the check? Or is it a feature that Marionette hasn't implemented yet?
Firefox: 50.1.0 Gecko Driver: 0.13 (install nuget package: Selenium.Firefox.WebDriver.0.13.0)
Firstly, open a standard Firefox browser, and make sure the default Firefox profile has added the unsecured site into the certificate exception list. C# code as follows:
FirefoxProfileManager fpManager = new FirefoxProfileManager();
var profiles = fpManager.ExistingProfiles;
var defaultProfile = fpManager.GetProfile(profiles.First());
driver = new FirefoxDriver(defaultProfile);