Ans-
By changing the setting of FirefoxProfile.
ex-
public
class
HTTPSSecuredConnection {
public
static
void
main(String[] args){
FirefoxProfile
profile = new
FirefoxProfile();
profile.setAcceptUntrustedCertificates(false);
WebDriver
driver = new
FirefoxDriver(profile);
driver.get("https://184.106.253.74");
}
}
Hi Sanjay..
ReplyDeleteCan you please explain, why we need to set 'setAcceptUntrustedCertificates' to false here? Is handling of 'https' website different from the other websites(say gmail,facebook so on..)?
yes to handle https website.
ReplyDeleteyou try to set 'setAcceptUntrustedCertificates' to true, it will not open that https website.
Good going Mr Sanjay
ReplyDeleteRegards,
Lakshay Sharma
Even if i use true.. it still works
ReplyDelete