Handling Security Cerificates(UntrustedSSLCertificates) in Internet Explorer (IE) using WebDriver(selenium2)
driver = new InternetExplorerDriver();driver.navigate().to("javascript:document.getElementById('overridelink').click()");
// or using selenium rc
selenium.runScript("document.getElementById('overridelink').click()");
Handling Security Cerificates(UntrustedSSLCertificates) in Firefox using WebDriver(selenium2)
System.out.println("firefox");
FirefoxProfile firefoxprofile = new FirefoxProfile();
firefoxprofile.setAssumeUntrustedCertificateIssuer(false);
DesiredCapabilities capability = DesiredCapabilities.firefox();
capability.setCapability(FirefoxDriver.PROFILE, firefoxprofile);
capability.setBrowserName("firefox");
capability.setPlatform(org.openqa.selenium.Platform.ANY);
driver = new FirefoxDriver(capability);
No comments:
Post a Comment