Page tree
Skip to end of metadata
Go to start of metadata

Last updated: May 13, 2020 20:07

Problem

Sometimes the site with not valid certificate should be accessed by Windows/Internet Explorer web browser.

Solution

The code below can be used in order to override the security warning and continue the test.

The client can use the following workaround and force the browser to access the site.

driver.get("bad ssl website");
driver.findElement(By.id("moreInfoContainer")).click();
driver.findElement(By.id("overridelink")).click();


Note: if no bad SSL error will occur the command will fail with error so it's recommended to wrap this code with try and catch block.