Handling UntrustedSSLcertificates using WebDriver

前端 未结 2 2046
别那么骄傲
别那么骄傲 2020-12-01 22:36

I got stuck in handling UntrustedSSLcertificates using web driver in Java.

I created firefox profile like:

FirefoxProfile profile = new FirefoxProfil         


        
2条回答
  •  借酒劲吻你
    2020-12-01 23:12

    //Firefox example with URL www.google.com

    FirefoxProfile profile=new FirefoxProfile();
    
    profile.setAssumeUntrustedCertificateIssuer(false);
    
    driver=new FireforDriver(profile);
    
    driver.get("https://google.com");
    

提交回复
热议问题