Quality Testing

Quality is delighting customers

Hi...

Can any one tell me how to handle the SSL certification pop-up in IE browser using WebDriver???

Views: 475

Reply to This

Replies to This Discussion

System.setProperty("WebDriver.ie.driver","Path of IEDriver.exe");

WebDriver driver = new InternetExplorerDriver();

driver.get("http://google.com");

driver.navigate().to("javascript:document.getElementById('Overridelink')").click();

File file = new File("E:\\Selenium_Projects\\IE_Driver_32_bit\\IEDriverServer.exe");
System.setProperty("webdriver.ie.driver", file.getAbsolutePath());

driver = new InternetExplorerDriver();

driver.get("http:mojotheapp.com")

if(findElementByXpath("//a[@id='overridelink']")){

driver.findElement(By.xpath("//a[@id='overridelink']")).click();
}

http://www.abodeqa.com/2013/05/03/accepting-untrusted-ssl-certifica...

Please go through this post and comment hopefully you would get better idea how to resolve SSL certificate error

RSS

TTWT Magazine


Advertisement

Advertisement

Advertisement

Advertisement

© 2019   Created by Quality Testing.   Powered by

Badges  |  Report an Issue  |  Terms of Service