title: Dismissing Firefox Security Warning in Selenium WebDriver?
body: <p>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</p>
  
  <pre><code>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);
  </code></pre>
  
  <p>Although this skips the "Get me out of here" screen I am unable to dismiss the next popop. I have also tried using</p>
  
  <pre><code>driver.switchTo().alert().accept()
  </code></pre>
  
  <p>but this leads to an exception. </p>