Chrome capabilities SSL Certificate Error

Good day folks!

I am trying to handle the SSL Certificate Error in Chrome/ Thought it can be handled in capabilities like:
DesiredCapabilities handlSSLErr = ()
handlSSLErr.setCapability (CapabilityType.ACCEPT_SSL_CERTS, true)
WebDriver driver = new ChromeDriver (handlSSLErr);

Can anyone help me in passing these values in chrome capabilities in the project settings?

I tried as shown in the image but it didn’t work.


1 Like

It took me a lot of digging to find the answer, but use “acceptInsecureCerts”:true

It worked for me!! Thank you very much <3

Hi Laura, Could you please share args or parameter you pass in Desire Capability for “acceptInsecureCerts”:true.

I am facing certificate issue in firefox for one of the site

Sorry, i’m pretty sure these capabilities work only in Chrome. I just added “acceptInsecureCerts”:boolean :true out of the “args”.

I had the same issue. Thank You. It worked for me . I am using Katalon 7.2