Checkout our demo site to practice selenium https://magento.softwaretestingboard.com/

0 like 0 dislike
1.2k views
by The go-to Tester (324 points)
How To Handle SSL Certificate Error In IE Browser For Selenium WebDriver Test?

When i see SSL certificate error In IE browser, my screen shows me a error: "There is problem with this website's security certificate."

1 Answer

0 like 0 dislike
by The go-to Tester (181 points)

You can avoid above error by simply accepting all SSL using DesiredCapabilities

 

DesiredCapabilities capabilities = new DesiredCapabilities();

capabilities.setCapability(CapabilityType.ACCEPT_SSL_CERTS, true);
System.setProperty("webdriver.ie.driver","IEDriverServer.exe");
WebDriver driver = new InternetExplorerDriver(capabilities);
 
In case of above code does not work, you can even try clicking on 
 
Continue to this Website (not recommended)
 
You can try below code:
driver.navigate ().to ("javascript:document.getElementById('overridelink').click()");
 
Hope that answered!


This site is for software testing professionals, where you can ask all your questions and get answers from 1300+ masters of the profession. Click here to submit yours now!

...