Answers for "how to handle ssl certificates in selenium webdriver"

1

ssl certificate error handling in selenium

SSL is a standard security protocol for establishing secure connection between
the SERVER and CLIENT. When secure connection is not established due to
certificate SSL error will occur and to handle it We need to create 
instance of DesiredCapabilities class :


for UI of CHROME, IE -> 
        DesiredCapabilities handlSSLErr = DesiredCapabilities.chrome()
        handlSSLErr.setCapability ((CapabilityType.ACCEPT_SSL_CERTS, true)
        WebDriver driver = new ChromeDriver(handlSSLErr);

for API ->
    Response response = given().relaxedHTTPSvalidation(). when(). get(baseURL);
Posted by: Guest on December-04-2020
0

how to handle ssl certificates in selenium webdriver

SSL is a standard security protocol for
establishing secure connection between
the SERVER and CLIENT. When secure 
connection is not established due to
certificate SSL error will occur and
to handle it We need to create 
instance of DesiredCapabilities class :


for UI of CHROME, IE -> 
        DesiredCapabilities handlSSLErr = DesiredCapabilities.chrome()
        handlSSLErr.setCapability ((CapabilityType.ACCEPT_SSL_CERTS, true)
        WebDriver driver = new ChromeDriver(handlSSLErr);

for API ->
    Response response = given().relaxedHTTPSvalidation(). when(). get(baseURL);
Posted by: Guest on January-14-2021

Code answers related to "how to handle ssl certificates in selenium webdriver"

Browse Popular Code Answers by Language