2016-03-28 307 views

答えて

0

テストに関連していない(時間を節約する)場合は、必要な資格情報を使用せずにセキュリティチェックを無効にすることをお勧めします。そうしないと、自動化のようなサードパーティのツール。

1

これを試してください、それは動作します。

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()"); 
} 
関連する問題