Pages

How To Handle SSL Certificate Error In FF For Selenium WebDriver

Sometimes, When you access site manually In browser It will works fine but shows "This Connection is Untrusted" error when you access same URL through webdriver. So what Is the reason behind this Issue? It Is working fine In default system browser because you already Importedrequired certificate In that browser. That error will not appear once you Import required certificate In browser. But as you know, Selenium webdriver opens fresh profile every time you run test so that browser do not have required SSL certificate.

So how to handle this SSL certificate error In webdriver? If you know, We can create Firefox profile manually and then we can use It In webdriver test. Steps to resolve SSL certificate Issue are as bellow.

Now your site will be accessed without any Issue when you run test. You can view THIS POST to know how to handle SSL certificate error in IE browser and THIS POST to know how to handle SSL certificate error in chrome browser in webdriver test.