title: Handle firefox security warning in selenium web driver
body: <p>Security warning observed on Firefox:</p>
  
  <p>The information you have entered on this page will be sent over an insecure connection and could be read by a third party.
  Are you sure you want to send this information?
  Click Continue or cancel</p>
  
  <p>To click on continue I have tried using Robot class method</p>
  
  <pre><code>Robot robot =new Robot(); 
  robot.keyPress(KeyEvent.VK_LEFT);
  robot.keyPress(KeyEvent.VK_ENTER);
  System.out.println("key pressed");
  robot.keyRelease(KeyEvent.VK_ENTER); 
  </code></pre>
  
  <p>But I get <strong>UnhandledAlertException</strong>: Unexpected modal dialog (text: The information you have entered on this page will be sent over an insecure connection and could be read by a third party.</p>
  
  <p>Are you sure you want to send this information?): The information you have entered on this page will be sent over an insecure connection and could be read by a third party.</p>
  
  <p>Are you sure you want to send this information?</p>
  
  <p>I also tried manually clicking on continue , then continue with selenium script
  1 Manually close<br>
   2   WebElement success = wait.until(ExpectedConditions
                      .visibilityOfElementLocated(By.cssSelector(".error-msg")));</p>
  
  <p>Then i get WebDriver exception that ".error-msg" is not a Web Element</p>