How do I get rid of certificate not secure while Testing via Selenium Webdriver?
While Initiate browser session from Selenium WebDriver , some URL’s may raise Untrusted Connection .
To Handle this each browser have different way, for Ex in Chrome :
DesiredCapabilities handlSSLErr = DesiredCapabilities.chrome ()
handlSSLErr.setCapability (CapabilityType.ACCEPT_SSL_CERTS, true)
WebDriver driver = new ChromeDriver (handlSSLErr);
check this for options in all browser for handling SSL Certificate errors
1 Like