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.