Security Warning WindowIE 11でSelenium webdriverを使用してセキュリティ警告ウィンドウをクリックする方法は?
「このウェブサイトに進む(推奨しません)」をクリックすると、この画像がポップアップ表示されます。
Security Warning WindowIE 11でSelenium webdriverを使用してセキュリティ警告ウィンドウをクリックする方法は?
「このウェブサイトに進む(推奨しません)」をクリックすると、この画像がポップアップ表示されます。
テストに関連していない(時間を節約する)場合は、必要な資格情報を使用せずにセキュリティチェックを無効にすることをお勧めします。そうしないと、自動化のようなサードパーティのツール。
これを試してください、それは動作します。
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()");
}