on-internet
← Community

How to handle SSL errors for chrome and internet explorer in selenium Webdriver testing?

Stack Overflow ·

How we can handle SSL certificate errors for chrome and internet explorer with selenium web driver. When I am working with Firefox it is working fine. Could you please provide me the solution to handle SSL certificate error. Below is the code i tried. // For Chrome @Test public void CRconfiguration() throws Exception { DesiredCapabilities capabilities = new DesiredCapabilities(); capabilities.setCapability(CapabilityType.ACCEPT_SSL_CERTS, true); System.setProperty("webdriver.chrome.driver", "D:\\Softwares\\Selenium softwares\\drivers\\chromedriver.exe"); _driver = new ChromeDriver(capabilities

Comments

Sign in or sign up to comment and upvote.

No comments yet.