Raman Chaturvedi
Raman Chaturvedi

Reputation: 19

How to click on the Security Warning window using Selenium webdriver in IE 11?

Security Warning Window

This image pops up when I click on "Continue to this website (not recommended)."

Upvotes: 1

Views: 1319

Answers (2)

user3681749
user3681749

Reputation: 37

Please Try This, It works.

public void TestSSLerror() {

    //Download IEDriver exe and past in project
    driver = new FirefoxDriver();

    //Open WebSite for time being let's take http://test.com
    driver.get("https://test.com");

    //now we are going to use javascipt ,This will click on "Continue to this website (not recommended)" text and will 
    //push us to the page
    driver.navigate().to("javascript:document.getElementById('overridelink').click()");
}

Upvotes: 1

Vignesh Paramasivam
Vignesh Paramasivam

Reputation: 2470

It is better if you can disable the security check by bypassing using required credentials, if it is not related to the test(saves time), otherwise you need to go for a third party tool like auto-it to automate it.

Upvotes: 0

Related Questions