Selenium WebDriver - How do you handle https website in selenium ?
Selenium WebDriver Interview question and Answers
(Continued from previous question...)
Selenium WebDriver - How do you handle https website in selenium ?
By changing the setting of FirefoxProfile.
Syntax-public class HTTPSSecuredConnection { public static void main(String[] args){ FirefoxProfile profile = new FirefoxProfile();
profile.setAcceptUntrustedCertificates(false); WebDriver driver = new FirefoxDriver(profile); driver.get("url"); } }
Syntax-public class HTTPSSecuredConnection {
public static void main(String[] args){
FirefoxProfile profile = new FirefoxProfile();
profile.setAcceptUntrustedCertificates(false);
WebDriver driver = new FirefoxDriver(profile);
driver.get("url");
}
}
(Continued on next question...)
Other Interview Questions
|