I'm having trouble with the Java Security Warning that pops up for an invalid certificate. I have set up the FireFox profile as such
FirefoxProfile fp = new FirefoxProfile();
fp.setAssumeUntrustedCertificateIssuer(false);
fp.setAcceptUntrustedCertificates(true);
fp.setPreference("security.enable_java",true);
fp.setPreference("plugin.state.java",2);
//New driver
WebDriver driver = new FirefoxDriver(fp);
Although this skips the "Get me out of here" screen I am unable to dismiss the next popop. I have also tried using
driver.switchTo().alert().accept()
but this leads to an exception.