Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lost focus and connection with IE Driver on prebuild binaries and 3.11.1 driver version #5825

Closed
sstepowany opened this issue Apr 25, 2018 · 4 comments

Comments

@sstepowany
Copy link

sstepowany commented Apr 25, 2018

Meta

OS: Windows 10 64bit
Selenium Server Version: 3.11.1
Browser: Internet Explorer 11.371.16299.0 -> with disabled Enchanced protected mode.
Driver: IEDriverServer.exe from prebuilt binaries included in issue 5664
Tests run in Node / Cucumber-js

Expected Behavior

Driver should process tests and actions on browsers without loosing window focus.

Actual Behavior

While starting tests, IEDriver is starting the page but looses focus after a while.

java -jar testUtils/gui/seleniumServer/selenium-server-standalone-3.11.0.jar -debug
12:04:02.774 INFO [GridLauncherV3.launch] - Selenium build info: version: '3.11.0', revision: 'e59cfb3'
12:04:02.776 INFO [GridLauncherV3$1.launch] - Launching a standalone Selenium Server on port 4444
2018-04-25 12:04:02.839:INFO::main: Logging initialized @261ms to org.seleniumhq.jetty9.util.log.StdErrLog
12:04:03.033 INFO [SeleniumServer.boot] - Welcome to Selenium for Workgroups....
12:04:03.034 INFO [SeleniumServer.boot] - Selenium Server is up and running on port 4444
12:04:07.153 DEBUG [WebDriverServlet.handle] - Found handler: org.openqa.selenium.remote.server.commandhandler.BeginSession@f494d6
12:04:07.156 DEBUG [WebDriverServlet.lambda$handle$1] - /session: Executing POST on /session (handler: BeginSession)
12:04:07.218 INFO [ActiveSessionFactory.apply] - Capabilities are: Capabilities {browserName: internet explorer}
12:04:07.221 INFO [ActiveSessionFactory.lambda$apply$11] - Matched factory org.openqa.selenium.remote.server.ServicedSession$Factory (provider: org.openqa.selenium.ie.InternetExplorerDriverService)
12:04:07.246 DEBUG [UrlChecker.waitUntilAvailable] - Waiting for [http://localhost:45790/status]
12:04:07.248 DEBUG [UrlChecker.lambda$waitUntilAvailable$1] - Polling http://localhost:45790/status
Started InternetExplorerDriver server (64-bit)
3.11.1.5
Listening on port 45790
Only local connections are allowed
12:04:07.766 DEBUG [UrlChecker.lambda$waitUntilAvailable$1] - Polling http://localhost:45790/status
12:04:07.772 DEBUG [HttpURLConnection.writeRequests] - sun.net.www.MessageHeader@13f9a5b5 pairs: {GET /status HTTP/1.1: null}{User-Agent: Java/1.8.0_161}{Host: localhost:45790}{Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2}{Connection: keep-alive}
12:04:07.779 DEBUG [HttpURLConnection.getInputStream0] - sun.net.www.MessageHeader@3d0f987 pairs: {null: HTTP/1.1 200 OK}{Content-Length: 251}{Content-Type: application/json; charset=UTF-8}{Cache-Control: no-cache}{Vary: Accept-Charset, Accept-Encoding, Accept-Language, Accept}{Accept-Ranges: bytes}{Connection: close}
12:04:08.545 INFO [ProtocolHandshake.createSession] - Detected dialect: W3C
12:04:08.562 DEBUG [RemoteWebDriver.log] - Executing: newSession [null, newSession {desiredCapabilities=Capabilities {acceptInsecureCerts: false, browserName: internet explorer, browserVersion: 11, pageLoadStrategy: normal, platformName: windows, proxy: Proxy(), se:ieOptions: {browserAttachTimeout: 0, elementScrollBehavior: 0, enablePersistentHover: true, ie.browserCommandLineSwitches: , ie.ensureCleanSession: false, ie.fileUploadDialogTimeout: 3000, ie.forceCreateProcessApi: false, ignoreProtectedModeSettings: false, ignoreZoomSetting: false, initialBrowserUrl: http://localhost:45790/, nativeEvents: true, requireWindowFocus: false}, setWindowRect: true, timeouts: {implicit: 0, pageLoad: 300000, script: 30000}}}]
12:04:08.564 DEBUG [RemoteWebDriver.log] - Executed: [null, newSession {desiredCapabilities=Capabilities {acceptInsecureCerts: false, browserName: internet explorer, browserVersion: 11, pageLoadStrategy: normal, platformName: windows, proxy: Proxy(), se:ieOptions: {browserAttachTimeout: 0, elementScrollBehavior: 0, enablePersistentHover: true, ie.browserCommandLineSwitches: , ie.ensureCleanSession: false, ie.fileUploadDialogTimeout: 3000, ie.forceCreateProcessApi: false, ignoreProtectedModeSettings: false, ignoreZoomSetting: false, initialBrowserUrl: http://localhost:45790/, nativeEvents: true, requireWindowFocus: false}, setWindowRect: true, timeouts: {implicit: 0, pageLoad: 300000, script: 30000}}}]
12:04:08.569 INFO [RemoteSession$Factory.lambda$performHandshake$0] - Started new session 318cb13d-3d05-47ec-89d7-5b4a3e1dff6e (org.openqa.selenium.ie.InternetExplorerDriverService)
12:04:08.585 DEBUG [WebDriverServlet.handle] - Found handler: 318cb13d-3d05-47ec-89d7-5b4a3e1dff6e (org.openqa.selenium.ie.InternetExplorerDriverService)
12:04:08.587 DEBUG [WebDriverServlet.lambda$handle$1] - Handler thread for session 318cb13d-3d05-47ec-89d7-5b4a3e1dff6e (internet explorer): Executing POST on /session/318cb13d-3d05-47ec-89d7-5b4a3e1dff6e/window/maximize (handler: ServicedSession)
12:04:08.591 DEBUG [Passthrough.handle] - To upstream: {"windowHandle":"current"}
12:04:08.592 DEBUG [HttpURLConnection.writeRequests] - sun.net.www.MessageHeader@1610e199 pairs: {POST /session/318cb13d-3d05-47ec-89d7-5b4a3e1dff6e/window/maximize HTTP/1.1: null}{Accept: application/json; charset=utf-8}{Content-Type: application/json; charset=utf-8}{Connection: close}{Cache-Control: no-cache}{Pragma: no-cache}{User-Agent: Java/1.8.0_161}{Host: localhost:45790}{Content-Length: 26}
12:04:08.605 DEBUG [HttpURLConnection.getInputStream0] - sun.net.www.MessageHeader@16e93847 pairs: {null: HTTP/1.1 200 OK}{Content-Length: 81}{Content-Type: application/json; charset=UTF-8}{Cache-Control: no-cache}{Vary: Accept-Charset, Accept-Encoding, Accept-Language, Accept}{Accept-Ranges: bytes}{Connection: close}
12:04:08.608 DEBUG [Passthrough.handle] - To downstream: {
        "value" :
        {
                "height" : 1056,
                "width" : 1936,
                "x" : -8,
                "y" : -8
        }
}

12:04:08.622 DEBUG [WebDriverServlet.handle] - Found handler: 318cb13d-3d05-47ec-89d7-5b4a3e1dff6e (org.openqa.selenium.ie.InternetExplorerDriverService)
12:04:08.623 DEBUG [WebDriverServlet.lambda$handle$1] - Handler thread for session 318cb13d-3d05-47ec-89d7-5b4a3e1dff6e (internet explorer): Executing POST on /session/318cb13d-3d05-47ec-89d7-5b4a3e1dff6e/url (handler: ServicedSession)
12:04:08.624 DEBUG [Passthrough.handle] - To upstream: {"url":"https://mdm-client.azurewebsites.net"}
12:04:08.624 DEBUG [HttpURLConnection.writeRequests] - sun.net.www.MessageHeader@92c7589 pairs: {POST /session/318cb13d-3d05-47ec-89d7-5b4a3e1dff6e/url HTTP/1.1: null}{Accept: application/json; charset=utf-8}{Content-Type: application/json; charset=utf-8}{Connection: close}{Cache-Control: no-cache}{Pragma: no-cache}{User-Agent: Java/1.8.0_161}{Host: localhost:45790}{Content-Length: 46}
12:04:08.681 DEBUG [HttpURLConnection.getInputStream0] - sun.net.www.MessageHeader@1c33f517 pairs: {null: HTTP/1.1 200 OK}{Content-Length: 19}{Content-Type: application/json; charset=UTF-8}{Cache-Control: no-cache}{Vary: Accept-Charset, Accept-Encoding, Accept-Language, Accept}{Accept-Ranges: bytes}{Connection: close}
12:04:08.683 DEBUG [Passthrough.handle] - To downstream: {
        "value" : null
}

12:04:08.690 DEBUG [WebDriverServlet.handle] - Found handler: 318cb13d-3d05-47ec-89d7-5b4a3e1dff6e (org.openqa.selenium.ie.InternetExplorerDriverService)
12:04:08.690 DEBUG [WebDriverServlet.lambda$handle$1] - Handler thread for session 318cb13d-3d05-47ec-89d7-5b4a3e1dff6e (internet explorer): Executing POST on /session/318cb13d-3d05-47ec-89d7-5b4a3e1dff6e/elements (handler: ServicedSession)
12:04:08.693 DEBUG [Passthrough.handle] - To upstream: {"using":"xpath","value":"//button"}
12:04:08.694 DEBUG [HttpURLConnection.writeRequests] - sun.net.www.MessageHeader@90d15e9 pairs: {POST /session/318cb13d-3d05-47ec-89d7-5b4a3e1dff6e/elements HTTP/1.1: null}{Accept: application/json; charset=utf-8}{Content-Type: application/json; charset=utf-8}{Connection: close}{Cache-Control: no-cache}{Pragma: no-cache}{User-Agent: Java/1.8.0_161}{Host: localhost:45790}{Content-Length: 36}
12:04:09.049 DEBUG [HttpURLConnection.getInputStream0] - sun.net.www.MessageHeader@69fb207 pairs: {null: HTTP/1.1 200 OK}{Content-Length: 17}{Content-Type: application/json; charset=UTF-8}{Cache-Control: no-cache}{Vary: Accept-Charset, Accept-Encoding, Accept-Language, Accept}{Accept-Ranges: bytes}{Connection: close}
12:04:09.050 DEBUG [Passthrough.handle] - To downstream: {
        "value" : []
}

12:04:09.057 DEBUG [WebDriverServlet.handle] - Found handler: 318cb13d-3d05-47ec-89d7-5b4a3e1dff6e (org.openqa.selenium.ie.InternetExplorerDriverService)
12:04:09.058 DEBUG [WebDriverServlet.lambda$handle$1] - Handler thread for session 318cb13d-3d05-47ec-89d7-5b4a3e1dff6e (internet explorer): Executing POST on /session/318cb13d-3d05-47ec-89d7-5b4a3e1dff6e/elements (handler: ServicedSession)
12:04:09.059 DEBUG [Passthrough.handle] - To upstream: {"using":"xpath","value":"//button"}
12:04:09.060 DEBUG [HttpURLConnection.writeRequests] - sun.net.www.MessageHeader@1b4f729 pairs: {POST /session/318cb13d-3d05-47ec-89d7-5b4a3e1dff6e/elements HTTP/1.1: null}{Accept: application/json; charset=utf-8}{Content-Type: application/json; charset=utf-8}{Connection: close}{Cache-Control: no-cache}{Pragma: no-cache}{User-Agent: Java/1.8.0_161}{Host: localhost:45790}{Content-Length: 36}
12:04:09.063 DEBUG [HttpURLConnection.getInputStream0] - sun.net.www.MessageHeader@acc1d77 pairs: {null: HTTP/1.1 404 Not Found}{Content-Length: 147}{Content-Type: application/json; charset=UTF-8}{Cache-Control: no-cache}{Vary: Accept-Charset, Accept-Encoding, Accept-Language, Accept}{Accept-Ranges: bytes}{Connection: close}
12:04:09.067 DEBUG [Passthrough.handle] - To downstream: {
        "value" :
        {
                "data" : null,
                "error" : "no such window",
                "message" : "Currently focused window has been closed.",
                "stacktrace" : ""
        }
}

12:04:09.083 DEBUG [WebDriverServlet.handle] - Found handler: 318cb13d-3d05-47ec-89d7-5b4a3e1dff6e (org.openqa.selenium.ie.InternetExplorerDriverService)
12:04:09.084 DEBUG [WebDriverServlet.lambda$handle$1] - Handler thread for session 318cb13d-3d05-47ec-89d7-5b4a3e1dff6e (internet explorer): Executing DELETE on /session/318cb13d-3d05-47ec-89d7-5b4a3e1dff6e (handler: ServicedSession)
12:04:09.084 DEBUG [HttpURLConnection.writeRequests] - sun.net.www.MessageHeader@1aeb3d7 pairs: {DELETE /session/318cb13d-3d05-47ec-89d7-5b4a3e1dff6e HTTP/1.1: null}{Accept: application/json; charset=utf-8}{Connection: close}{Cache-Control: no-cache}{Pragma: no-cache}{User-Agent: Java/1.8.0_161}{Host: localhost:45790}
12:04:09.098 DEBUG [HttpURLConnection.getInputStream0] - sun.net.www.MessageHeader@13da4e57 pairs: {null: HTTP/1.1 200 OK}{Content-Length: 19}{Content-Type: application/json; charset=UTF-8}{Cache-Control: no-cache}{Vary: Accept-Charset, Accept-Encoding, Accept-Language, Accept}{Accept-Ranges: bytes}{Connection: close}
12:04:09.100 DEBUG [Passthrough.handle] - To downstream: {
        "value" : null
}

Returned error in tests:

NoSuchWindowError: Currently focused window has been closed.

Additionally

While using IEDriver 3.11.1 I'm getting following error:

WebDriverError: java.net.ConnectException: Connection refused: connect

Logs from selenium server:

java -jar testUtils/gui/seleniumServer/selenium-server-standalone-3.11.0.jar -debug
12:15:46.079 INFO [GridLauncherV3.launch] - Selenium build info: version: '3.11.0', revision: 'e59cfb3'
12:15:46.081 INFO [GridLauncherV3$1.launch] - Launching a standalone Selenium Server on port 4444
2018-04-25 12:15:46.144:INFO::main: Logging initialized @223ms to org.seleniumhq.jetty9.util.log.StdErrLog
12:15:46.333 INFO [SeleniumServer.boot] - Welcome to Selenium for Workgroups....
12:15:46.333 INFO [SeleniumServer.boot] - Selenium Server is up and running on port 4444
12:15:49.603 DEBUG [WebDriverServlet.handle] - Found handler: org.openqa.selenium.remote.server.commandhandler.BeginSession@f076b0
12:15:49.608 DEBUG [WebDriverServlet.lambda$handle$1] - /session: Executing POST on /session (handler: BeginSession)
12:15:49.680 INFO [ActiveSessionFactory.apply] - Capabilities are: Capabilities {browserName: internet explorer}
12:15:49.682 INFO [ActiveSessionFactory.lambda$apply$11] - Matched factory org.openqa.selenium.remote.server.ServicedSession$Factory (provider: org.openqa.selenium.ie.InternetExplorerDriverService)
12:15:49.711 DEBUG [UrlChecker.waitUntilAvailable] - Waiting for [http://localhost:27704/status]
12:15:49.712 DEBUG [UrlChecker.lambda$waitUntilAvailable$1] - Polling http://localhost:27704/status
Started InternetExplorerDriver server (64-bit)
3.11.1.0
Listening on port 27704
Only local connections are allowed
12:15:50.228 DEBUG [UrlChecker.lambda$waitUntilAvailable$1] - Polling http://localhost:27704/status
12:15:50.229 DEBUG [HttpURLConnection.writeRequests] - sun.net.www.MessageHeader@4e5215 pairs: {GET /status HTTP/1.1: null}{User-Agent: Java/1.8.0_161}{Host: localhost:27704}{Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2}{Connection: keep-alive}
12:15:50.231 DEBUG [HttpURLConnection.getInputStream0] - sun.net.www.MessageHeader@10670057 pairs: {null: HTTP/1.1 200 OK}{Content-Length: 187}{Content-Type: application/json; charset=UTF-8}{Cache-Control: no-cache}{Vary: Accept-Charset, Accept-Encoding, Accept-Language, Accept}{Accept-Ranges: bytes}{Connection: close}
12:15:50.950 INFO [ProtocolHandshake.createSession] - Detected dialect: W3C
12:15:50.967 DEBUG [RemoteWebDriver.log] - Executing: newSession [null, newSession {desiredCapabilities=Capabilities {acceptInsecureCerts: false, browserName: internet explorer, browserVersion: 11, pageLoadStrategy: normal, platformName: windows, proxy: Proxy(), se:ieOptions: {browserAttachTimeout: 0, elementScrollBehavior: 0, enablePersistentHover: true, ie.browserCommandLineSwitches: , ie.ensureCleanSession: false, ie.fileUploadDialogTimeout: 3000, ie.forceCreateProcessApi: false, ignoreProtectedModeSettings: false, ignoreZoomSetting: false, initialBrowserUrl: http://localhost:27704/, nativeEvents: true, requireWindowFocus: false}, setWindowRect: true, timeouts: {implicit: 0, pageLoad: 300000, script: 30000}}}]
12:15:50.967 DEBUG [RemoteWebDriver.log] - Executed: [null, newSession {desiredCapabilities=Capabilities {acceptInsecureCerts: false, browserName: internet explorer, browserVersion: 11, pageLoadStrategy: normal, platformName: windows, proxy: Proxy(), se:ieOptions: {browserAttachTimeout: 0, elementScrollBehavior: 0, enablePersistentHover: true, ie.browserCommandLineSwitches: , ie.ensureCleanSession: false, ie.fileUploadDialogTimeout: 3000, ie.forceCreateProcessApi: false, ignoreProtectedModeSettings: false, ignoreZoomSetting: false, initialBrowserUrl: http://localhost:27704/, nativeEvents: true, requireWindowFocus: false}, setWindowRect: true, timeouts: {implicit: 0, pageLoad: 300000, script: 30000}}}]
12:15:50.971 INFO [RemoteSession$Factory.lambda$performHandshake$0] - Started new session 112486e8-26cc-41f1-b482-85d701833f29 (org.openqa.selenium.ie.InternetExplorerDriverService)
12:15:50.984 DEBUG [WebDriverServlet.handle] - Found handler: 112486e8-26cc-41f1-b482-85d701833f29 (org.openqa.selenium.ie.InternetExplorerDriverService)
12:15:50.985 DEBUG [WebDriverServlet.lambda$handle$1] - Handler thread for session 112486e8-26cc-41f1-b482-85d701833f29 (internet explorer): Executing POST on /session/112486e8-26cc-41f1-b482-85d701833f29/window/maximize (handler: ServicedSession)
12:15:50.988 DEBUG [Passthrough.handle] - To upstream: {"windowHandle":"current"}
12:15:50.989 DEBUG [HttpURLConnection.writeRequests] - sun.net.www.MessageHeader@17d1a649 pairs: {POST /session/112486e8-26cc-41f1-b482-85d701833f29/window/maximize HTTP/1.1: null}{Accept: application/json; charset=utf-8}{Content-Type: application/json; charset=utf-8}{Connection: close}{Cache-Control: no-cache}{Pragma: no-cache}{User-Agent: Java/1.8.0_161}{Host: localhost:27704}{Content-Length: 26}
12:15:51.002 DEBUG [HttpURLConnection.getInputStream0] - sun.net.www.MessageHeader@1e5a79f7 pairs: {null: HTTP/1.1 200 OK}{Content-Length: 53}{Content-Type: application/json; charset=UTF-8}{Cache-Control: no-cache}{Vary: Accept-Charset, Accept-Encoding, Accept-Language, Accept}{Accept-Ranges: bytes}{Connection: close}
12:15:51.005 DEBUG [Passthrough.handle] - To downstream: {"value":{"height":1056,"width":1936,"x":-8,"y":-8}}


12:15:51.017 DEBUG [WebDriverServlet.handle] - Found handler: 112486e8-26cc-41f1-b482-85d701833f29 (org.openqa.selenium.ie.InternetExplorerDriverService)
12:15:51.018 DEBUG [WebDriverServlet.lambda$handle$1] - Handler thread for session 112486e8-26cc-41f1-b482-85d701833f29 (internet explorer): Executing POST on /session/112486e8-26cc-41f1-b482-85d701833f29/url (handler: ServicedSession)
12:15:51.019 DEBUG [Passthrough.handle] - To upstream: {"url":"https://mdm-client.azurewebsites.net"}
12:15:51.019 DEBUG [HttpURLConnection.writeRequests] - sun.net.www.MessageHeader@1270ab29 pairs: {POST /session/112486e8-26cc-41f1-b482-85d701833f29/url HTTP/1.1: null}{Accept: application/json; charset=utf-8}{Content-Type: application/json; charset=utf-8}{Connection: close}{Cache-Control: no-cache}{Pragma: no-cache}{User-Agent: Java/1.8.0_161}{Host: localhost:27704}{Content-Length: 46}
12:15:51.071 DEBUG [HttpURLConnection.getInputStream0] - sun.net.www.MessageHeader@7968397 pairs: {null: HTTP/1.1 200 OK}{Content-Length: 15}{Content-Type: application/json; charset=UTF-8}{Cache-Control: no-cache}{Vary: Accept-Charset, Accept-Encoding, Accept-Language, Accept}{Accept-Ranges: bytes}{Connection: close}
12:15:51.072 DEBUG [Passthrough.handle] - To downstream: {"value":null}


12:15:51.078 DEBUG [WebDriverServlet.handle] - Found handler: 112486e8-26cc-41f1-b482-85d701833f29 (org.openqa.selenium.ie.InternetExplorerDriverService)
12:15:51.079 DEBUG [WebDriverServlet.lambda$handle$1] - Handler thread for session 112486e8-26cc-41f1-b482-85d701833f29 (internet explorer): Executing POST on /session/112486e8-26cc-41f1-b482-85d701833f29/elements (handler: ServicedSession)
12:15:51.080 DEBUG [Passthrough.handle] - To upstream: {"using":"xpath","value":"//button"}
12:15:51.081 DEBUG [HttpURLConnection.writeRequests] - sun.net.www.MessageHeader@d444e09 pairs: {POST /session/112486e8-26cc-41f1-b482-85d701833f29/elements HTTP/1.1: null}{Accept: application/json; charset=utf-8}{Content-Type: application/json; charset=utf-8}{Connection: close}{Cache-Control: no-cache}{Pragma: no-cache}{User-Agent: Java/1.8.0_161}{Host: localhost:27704}{Content-Length: 36}
12:15:51.446 DEBUG [HttpURLConnection.getInputStream0] - sun.net.www.MessageHeader@1cb69867 pairs: {null: HTTP/1.1 200 OK}{Content-Length: 13}{Content-Type: application/json; charset=UTF-8}{Cache-Control: no-cache}{Vary: Accept-Charset, Accept-Encoding, Accept-Language, Accept}{Accept-Ranges: bytes}{Connection: close}
12:15:51.447 DEBUG [Passthrough.handle] - To downstream: {"value":[]}


12:15:51.453 DEBUG [WebDriverServlet.handle] - Found handler: 112486e8-26cc-41f1-b482-85d701833f29 (org.openqa.selenium.ie.InternetExplorerDriverService)
12:15:51.453 DEBUG [WebDriverServlet.lambda$handle$1] - Handler thread for session 112486e8-26cc-41f1-b482-85d701833f29 (internet explorer): Executing POST on /session/112486e8-26cc-41f1-b482-85d701833f29/elements (handler: ServicedSession)
12:15:51.456 DEBUG [Passthrough.handle] - To upstream: {"using":"xpath","value":"//button"}
12:15:51.457 DEBUG [HttpURLConnection.writeRequests] - sun.net.www.MessageHeader@488d179 pairs: {POST /session/112486e8-26cc-41f1-b482-85d701833f29/elements HTTP/1.1: null}{Accept: application/json; charset=utf-8}{Content-Type: application/json; charset=utf-8}{Connection: close}{Cache-Control: no-cache}{Pragma: no-cache}{User-Agent: Java/1.8.0_161}{Host: localhost:27704}{Content-Length: 36}
12:15:54.882 DEBUG [WebDriverServlet.handle] - Found handler: 112486e8-26cc-41f1-b482-85d701833f29 (org.openqa.selenium.ie.InternetExplorerDriverService)
12:15:54.883 DEBUG [WebDriverServlet.lambda$handle$1] - Handler thread for session 112486e8-26cc-41f1-b482-85d701833f29 (internet explorer): Executing DELETE on /session/112486e8-26cc-41f1-b482-85d701833f29 (handler: ServicedSession)
12:15:55.895 INFO [ActiveSessions$1.onStop] - Removing session 112486e8-26cc-41f1-b482-85d701833f29 (org.openqa.selenium.ie.InternetExplorerDriverService)
12:15:56.898 DEBUG [UrlChecker.waitUntilUnavailable] - Waiting for http://localhost:27704/shutdown
12:15:56.901 DEBUG [UrlChecker.lambda$waitUntilUnavailable$2] - Polling http://localhost:27704/shutdown
@jimevans
Copy link
Member

And what does the log from IEDriverServer.exe show? (Setting up how to make the server generate the log is left as an exercise for the reader. There is no way for me to know all of the intricacies of cucumber-js to be able to offer any advice how to invoke the server with the proper —log-file and —log-level command-line arguments.)

@sstepowany
Copy link
Author

sstepowany commented Apr 25, 2018

Here are logs from IEDriver on TRACE level. TRACE-logs-IEDriver.log
What I can find in the logs is:

W 2018-04-25 13:26:33:918 c:\projects\webdriver\cpp\iedriver\browser.cpp(57) This instance of Internet Explorer is exiting without an explicit request to close it. Unless you clicked a link that specifically attempts to close the page, that likely means a Protected Mode boundary has been crossed (either entering or exiting Protected Mode). It is highly likely that any subsequent commands to this driver instance will fail. THIS IS NOT A BUG IN THE IE DRIVER! Fix your code and/or browser configuration so that a Protected Mode boundary is not crossed.

And then error:

D 2018-04-25 13:26:34:200 c:\projects\webdriver\cpp\webdriver-server\server.cc(409) Response: {
	"value" : 
	{
		"data" : null,
		"error" : "no such window",
		"message" : "Currently focused window has been closed.",
		"stacktrace" : ""
	}
}

I can say for now that I have all requirements met from InternetExplorerDriver -> Required Configuration section. Includes registry entries and browser configuration.
Am I missing something?

@jimevans
Copy link
Member

And what happens if you use the 32-bit driver executable?

@sstepowany
Copy link
Author

I think I found the problem. It seems that I missed configuration requirement. Protected mode was not set for all zones. Now It goes further and tried to type in something. This seems to be an issue with configuration. Sorry for bothering with that issue. I think we can close it right now to not lose more of Your time. Thank you for assistance tho, because forcing me to get logs from driver help to understand the problem.

@lock lock bot locked and limited conversation to collaborators Aug 16, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants