My version of Firefox is 46.0.1, and the version of Selenium is 3.0.1. I get an error message:
Your connection is not safe
when executing the following code:
@Test public void test() { ProfilesIni profile = new ProfilesIni(); FirefoxProfile ffProfile = profile.getProfile("newCretedProfile"); ffProfile.setAcceptUntrustedCertificates(true); ffProfile.setAssumeUntrustedCertificateIssuer(false); System.setProperty("webdriver.gecko.driver", "D:\\SELENUIUM\\Drivers\\geckodriver.exe"); FirefoxDriver driver = new FirefoxDriver(ffProfile); driver.get("http://www.google.com"); driver.quit(); }
I created a new firefox profile and followed the following url steps
However, it does not work and gives me the same error when starting any site.
source share