Accept Security Certificate Warning Internet Explorer

Rate this post
<code lang="java">
  public void acceptCertificateWarning() {
    System.setProperty("webdriver.ie.driver", this.getClass()
        .getClassLoader().getResource("IEDriverServer.exe")
        .getPath());
    WebDriver driver = new InternetExplorerDriver();
    driver
        .navigate()
        .to("javascript:document.getElementById('overridelink').click()");
  }
</code>

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.