Unexpected secure connection alert

71 views
Skip to first unread message

lukasz....@uniteam.pl

unread,
Jul 31, 2017, 5:04:12 AM7/31/17
to Selenium Users
I'm getting trouble with unexpected alert exception.

Here is my stacktrace:
org.openqa.selenium.UnhandledAlertException: Modal dialog present: You are about to view pages over a secure connection.
Build info: version: '3.4.0', revision: 'unknown', time: 'unknown'
System info: host: 'host', ip: 'ip', os.name: 'Windows Server 2012 R2', os.arch: 'amd64', os.version: '6.3', java.version: '1.8.0_101'
Driver info: org.openqa.selenium.ie.InternetExplorerDriver
Capabilities [{se:ieOptions={browserAttachTimeout=0.0, ie.enableFullPageScreenshot=true, enablePersistentHover=true, ie.forceCreateProcessApi=false, ie.forceShellWindowsApi=false, ignoreZoomSetting=false, ie.fileUploadDialogTimeout=3000.0, ie.useLegacyFileUploadDialogHandling=false, nativeEvents=true, ie.ensureCleanSession=false, elementScrollBehavior=0.0, ie.browserCommandLineSwitches=, requireWindowFocus=false, initialBrowserUrl=http://localhost:4682/, ignoreProtectedModeSettings=false, enableElementCacheCleanup=true}, browserName=internet explorer, pageLoadStrategy=normal, javascriptEnabled=true, version=11, platform=WINDOWS, unexpectedAlertBehaviour=dismiss}]
Session ID: 1aefe100-309f-4be2-89a3-6671d6a7df81

The thing is I can't reproduce exception when I do it manually. I'm confused. My test is pretty simple, I mean it's button.click() and then dialog appear. I have no idea where start debuging and where is a real reason. I authenticate to application over alert().authenticateUsing(new UserAndPassword("login", "password")). I supposed alert().dismiss() will be working but it's not. If I catch WebDriver's IE instance and dismiss dialog by mouse click it works. Button OK redirect me to antoher page of application. Disable option "Warn if changing between secure and not secure mode" doesn't work.

Any ideas?

lukasz....@uniteam.pl

unread,
Aug 4, 2017, 4:17:00 AM8/4/17
to Selenium Users
It's connected with changing protocol. Everytime I start with HTTP protocol and when I click into some button I am redirected to another page which use HTTPS. How deal with that? Are there any solution to this solve my problem? I think the problem is Internet Explorer 11 and settings. 
Reply all
Reply to author
Forward
0 new messages