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

Popular posts from this blog

Sort a complex associative array in PHP -

vb.net - How to ignore if a cell is empty nothing -

recursion - Can every recursive algorithm be improved with dynamic programming? -