I have created some java classes that use testng and selenium frameworks. For the moment, when I execute the tests with Chrome/Firefox, they run smoothly.

However, when I execute those tests with Internet Explorer, the security certificate message is shown.

How can I bypass this screen and continue with the execution of my tests ? Browser Screenshot


I used these two lines of code as well:

webDriver.get("javascript:document.getElementById('overridelink').click();");

or

webDriver.navigate().to("javascript:document.getElementById('overridelink').click();");

In either case, the link is not pressed.

I am using Internet Explorer 11.

You can use desired capability class to overcome this. Please find the code below,

DesiredCapabilities capabilities = new DesiredCapabilities();
capabilities.setCapability(CapabilityType.ACCEPT_SSL_CERTS, true);
System.setProperty("webdriver.ie.driver","IEDriverServer.exe");
WebDriver driver = new InternetExplorerDriver(capabilities);
  • I have already used this capability type to make it work for Chrome and Firefox. Internet Explorer doesn't seem to be influenced by this. – Narcis Neacsu Aug 9 '16 at 14:34
  1. You can try to install self signed certificate. In Windows Internet Explorer, click Continue to this website (not recommended).

    • A red Address Bar and a certificate warning appear.
    • Click the Certificate Error button to open the information window.
    • Click View Certificates, and then click Install Certificate.
    • On the warning message that appears, click Yes to install the certificate.

If you are not satisfied or it did not help to solve the problem you have actually many ways how to obey the warning page or solving the problem. I am not sure which will help to fix your problem because you did not provide much information..... try for example this one:

  1. Try to turn off publishers and servers cert. revocation Launch Internet Explorer on a desktop computer.
    • Click Tools -> "Internet Options" window appears -> Advanced tab
    • Under "Security", uncheck the boxes "Check for publisher's revocation" and "Check for server certificate revocation.".

It should do the trick. If not, please try to provide more info.

Your Answer

 

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.