Selenium Secure Socket Layer Issue in Selenium 3 -
how handle ssl certifiaction error in selenium 3 , above firefox 49+.
it helpful if answer. in advance
for chrome :
desiredcapabilities sslerr = desiredcapabilities.chrome () sslerr.setcapability (capabilitytype.accept_ssl_certs, true) webdriver driver = new chromedriver (lsslerr); or
chromeoptions option= new chromeoptions(); option.addarguments("headless"); option.addarguments("ignore-certificate-errors"); webdriver d=new chromedriver(option); for firefox
firefoxprofile profilessl = new firefoxprofile(); profilessl.setacceptuntrustedcertificates(true); profilessl.setassumeuntrustedcertificateissuer(false); driver = new firefoxdriver(profilessl)
Comments
Post a Comment