We need to create the Firefox Profile in order to handle this kind of https sites.
And it is possible only for Firefox. We can not create Profile for Chrome and IE.
And it is possible only for Firefox. We can not create Profile for Chrome and IE.
public class myHTTPSConnectionClass {
public static void main(String[] args){
FirefoxProfile profile = newFirefoxProfile();
profile.setAcceptUntrustedCertificates(false);
WebDriver driver = newFirefoxDriver(profile);
driver.get("https://172.64.26.16");
}
}
No comments:
Post a Comment