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 = DesiredCapabilities.chrome ()
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.

image

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