Showing posts with label How do you handle https website in selenium ?. Show all posts
Showing posts with label How do you handle https website in selenium ?. Show all posts

Friday, May 23, 2014

How do you handle https website in selenium ?

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");
}
}