Wednesday, 28 October 2015

How to skip the SSL certificate check in selenium webdriver ?


//Using Firefox profile set AcceptUntrustedCertificates to ture 
FirefoxProfile profile=new FirefoxProfile(); 
profile.setAcceptUntrustedCertificates(true); 

//Then pass that profile while creating Firefox driver 

WebDriver Driver = new FirefoxDriver(profile); 

No comments:

Post a Comment