selenium: [πŸ› Bug]: Inconsistent IEDriverServer 4.0.0 instance shutdown (using Edge in IEMode + Selenium 4)

What happened?

We have been facing an issue (which is inconsistent), the IEDriverServer instance managed by Selenium Grid not shutting down gracefully. Frequently the selenium node instance continue in loop for driver.quit() request, trying to keep sending DELETE request to IEDriverServer, and thru log we could see the IEDriverServer loops waiting for all browser instance to close, however the browser instance is already closed.

What we are using? Selenium 4.1.4 (for hub and node) Selenium Java Client 4.1.2 Internet Explorer - with capability to run on Edge in IE Mode

Hub started with below command line: java -jar β€œC:\TAAS_AUTOMATION\selenium-server-4.1.4.jar” hub

Node started with below command line: java -Dwebdriver.ie.driver.logfile=driver.log -Dwebdriver.ie.driver.loglevel=DEBUG -jar selenium-server-4.1.4.jar node --detect-drivers true --http-logs true --log-level FINE --log session.log

How can we reproduce the issue?

**What we are using?**
Selenium 4.1.4 (for hub and node)
Selenium Java Client 4.1.2
Internet Explorer - with capability to run on Edge in IE Mode

**Hub started with below command line:**
java -jar "C:\TAAS_AUTOMATION\selenium-server-4.1.4.jar" hub

**Node started with below command line:**
java -Dwebdriver.ie.driver.logfile=driver.log -Dwebdriver.ie.driver.loglevel=DEBUG -jar selenium-server-4.1.4.jar node --detect-drivers true --http-logs true --log-level FINE --log session.log

Relevant log output

T 2022-05-02 12:05:12:818 C:\Projects\selenium\cpp\webdriver-server\server.cc(479) Entering Server::SendResponseToClient
T 2022-05-02 12:05:12:818 C:\Projects\selenium\cpp\webdriver-server\response.cc(30) Entering Response::Deserialize
T 2022-05-02 12:05:12:818 C:\Projects\selenium\cpp\webdriver-server\server.cc(540) Entering Server::SendHttpOk
T 2022-05-02 12:05:13:056 C:\Projects\selenium\cpp\webdriver-server\server.cc(234) Entering Server::ProcessRequest
T 2022-05-02 12:05:13:056 C:\Projects\selenium\cpp\webdriver-server\server.cc(243) Process request with: URI: /session/4e4c2094-0f96-4fa1-a77c-9d2a029ddcdd HTTP verb: DELETE
body: {}
T 2022-05-02 12:05:13:056 C:\Projects\selenium\cpp\webdriver-server\server.cc(334) Entering Server::DispatchCommand
T 2022-05-02 12:05:13:056 C:\Projects\selenium\cpp\webdriver-server\server.cc(687) Entering Server::LookupCommand
D 2022-05-02 12:05:13:056 C:\Projects\selenium\cpp\webdriver-server\server.cc(343) Command: DELETE /session/4e4c2094-0f96-4fa1-a77c-9d2a029ddcdd {}
T 2022-05-02 12:05:13:056 C:\Projects\selenium\cpp\webdriver-server\server.cc(466) Entering Server::LookupSession
T 2022-05-02 12:05:13:056 C:\Projects\selenium\cpp\iedriver\IESession.cpp(198) Entering IESession::ExecuteCommand
T 2022-05-02 12:05:13:056 C:\Projects\selenium\cpp\iedriver\IECommandExecutor.cpp(156) Entering IECommandExecutor::OnSetCommand
T 2022-05-02 12:05:13:057 C:\Projects\selenium\cpp\webdriver-server\command.cc(31) Entering Command::Deserialize
D 2022-05-02 12:05:13:057 C:\Projects\selenium\cpp\webdriver-server\command.cc(36) Raw JSON command: { "name" : "quit", "locator" : { "sessionid" : "4e4c2094-0f96-4fa1-a77c-9d2a029ddcdd" }, "parameters" : {} }
T 2022-05-02 12:05:13:057 C:\Projects\selenium\cpp\webdriver-server\command.cc(31) Entering Command::Deserialize
D 2022-05-02 12:05:13:057 C:\Projects\selenium\cpp\webdriver-server\command.cc(36) Raw JSON command: { "name" : "quit", "locator" : { "sessionid" : "4e4c2094-0f96-4fa1-a77c-9d2a029ddcdd" }, "parameters" : {} }
T 2022-05-02 12:05:13:057 C:\Projects\selenium\cpp\iedriver\IECommandExecutor.cpp(178) Entering IECommandExecutor::OnExecCommand
T 2022-05-02 12:05:13:057 C:\Projects\selenium\cpp\iedriver\IECommandExecutor.cpp(974) Entering IECommandExecutor::DispatchCommand
T 2022-05-02 12:05:13:057 C:\Projects\selenium\cpp\iedriver\IECommandExecutor.cpp(1295) Entering IECommandExecutor::GetCurrentBrowser
T 2022-05-02 12:05:13:057 C:\Projects\selenium\cpp\iedriver\IECommandExecutor.cpp(1301) Entering IECommandExecutor::GetManagedBrowser
D 2022-05-02 12:05:13:057 C:\Projects\selenium\cpp\iedriver\IECommandExecutor.cpp(992) Checking for alert before executing quit command
T 2022-05-02 12:05:13:057 C:\Projects\selenium\cpp\iedriver\IECommandExecutor.cpp(1190) Entering IECommandExecutor::IsAlertActive
T 2022-05-02 12:05:13:057 C:\Projects\selenium\cpp\iedriver\Browser.cpp(868) Entering Browser::GetActiveDialogWindowHandle
T 2022-05-02 12:05:13:057 C:\Projects\selenium\cpp\iedriver\Browser.cpp(315) Entering Browser::GetContentWindowHandle
D 2022-05-02 12:05:13:057 C:\Projects\selenium\cpp\iedriver\IECommandExecutor.cpp(1207) No alert handle is found
D 2022-05-02 12:05:13:057 C:\Projects\selenium\cpp\iedriver\IECommandExecutor.cpp(1039) Executing command: quit
T 2022-05-02 12:05:13:057 C:\Projects\selenium\cpp\iedriver\IECommandExecutor.cpp(1325) Entering IECommandExecutor::GetManagedBrowserHandles
T 2022-05-02 12:05:13:057 C:\Projects\selenium\cpp\iedriver\Browser.cpp(571) Entering Browser::IsValidWindow
T 2022-05-02 12:05:13:057 C:\Projects\selenium\cpp\iedriver\Browser.cpp(868) Entering Browser::GetActiveDialogWindowHandle
T 2022-05-02 12:05:13:058 C:\Projects\selenium\cpp\iedriver\Browser.cpp(315) Entering Browser::GetContentWindowHandle
T 2022-05-02 12:05:13:058 C:\Projects\selenium\cpp\iedriver\IECommandExecutor.cpp(1301) Entering IECommandExecutor::GetManagedBrowser
T 2022-05-02 12:05:13:058 C:\Projects\selenium\cpp\iedriver\Browser.cpp(428) Entering Browser::Close
T 2022-05-02 12:05:13:058 C:\Projects\selenium\cpp\iedriver\Browser.cpp(559) Entering Browser::GetTopLevelWindowHandle
T 2022-05-02 12:05:13:058 C:\Projects\selenium\cpp\iedriver\IESession.cpp(226) Beginning wait for response length to be not zero
T 2022-05-02 12:05:13:058 C:\Projects\selenium\cpp\iedriver\DocumentHost.cpp(149) Entering DocumentHost::SetFocusedFrameByElement
T 2022-05-02 12:05:13:059 C:\Projects\selenium\cpp\webdriver-server\response.cc(81) Entering Response::SetSuccessResponse
T 2022-05-02 12:05:13:059 C:\Projects\selenium\cpp\webdriver-server\response.cc(87) Entering Response::SetResponse
D 2022-05-02 12:05:13:059 C:\Projects\selenium\cpp\iedriver\IECommandExecutor.cpp(1042) Command execution for quit complete
T 2022-05-02 12:05:13:059 C:\Projects\selenium\cpp\iedriver\IECommandExecutor.cpp(1295) Entering IECommandExecutor::GetCurrentBrowser
T 2022-05-02 12:05:13:059 C:\Projects\selenium\cpp\iedriver\IECommandExecutor.cpp(1301) Entering IECommandExecutor::GetManagedBrowser
T 2022-05-02 12:05:13:059 C:\Projects\selenium\cpp\iedriver\IECommandExecutor.cpp(1304) Current command executor is not valid
T 2022-05-02 12:05:13:121 C:\Projects\selenium\cpp\iedriver\IECommandExecutor.cpp(463) Entering IECommandExecutor::OnAllBrowserCloseWait
T 2022-05-02 12:05:13:121 C:\Projects\selenium\cpp\iedriver\IECommandExecutor.cpp(465) Still have 1 browsers
T 2022-05-02 12:05:13:121 C:\Projects\selenium\cpp\iedriver\IECommandExecutor.cpp(468) Still awaiting close of browser with ID a514800a-286b-490d-81e8-1474cdaba229
T 2022-05-02 12:05:13:121 C:\Projects\selenium\cpp\iedriver\IECommandExecutor.cpp(1190) Entering IECommandExecutor::IsAlertActive
T 2022-05-02 12:05:13:121 C:\Projects\selenium\cpp\iedriver\Browser.cpp(868) Entering Browser::GetActiveDialogWindowHandle
T 2022-05-02 12:05:13:122 C:\Projects\selenium\cpp\iedriver\Browser.cpp(315) Entering Browser::GetContentWindowHandle
D 2022-05-02 12:05:13:122 C:\Projects\selenium\cpp\iedriver\IECommandExecutor.cpp(1207) No alert handle is found
T 2022-05-02 12:05:13:194 C:\Projects\selenium\cpp\iedriver\IECommandExecutor.cpp(463) Entering IECommandExecutor::OnAllBrowserCloseWait
T 2022-05-02 12:05:13:194 C:\Projects\selenium\cpp\iedriver\IECommandExecutor.cpp(465) Still have 1 browsers
T 2022-05-02 12:05:13:194 C:\Projects\selenium\cpp\iedriver\IECommandExecutor.cpp(468) Still awaiting close of browser with ID a514800a-286b-490d-81e8-1474cdaba229
T 2022-05-02 12:05:13:194 C:\Projects\selenium\cpp\iedriver\IECommandExecutor.cpp(1190) Entering IECommandExecutor::IsAlertActive
T 2022-05-02 12:05:13:194 C:\Projects\selenium\cpp\iedriver\Browser.cpp(868) Entering Browser::GetActiveDialogWindowHandle
T 2022-05-02 12:05:13:194 C:\Projects\selenium\cpp\iedriver\Browser.cpp(315) Entering Browser::GetContentWindowHandle
D 2022-05-02 12:05:13:195 C:\Projects\selenium\cpp\iedriver\IECommandExecutor.cpp(1207) No alert handle is found
T 2022-05-02 12:05:13:258 C:\Projects\selenium\cpp\iedriver\IECommandExecutor.cpp(463) Entering IECommandExecutor::OnAllBrowserCloseWait
T 2022-05-02 12:05:13:258 C:\Projects\selenium\cpp\iedriver\IECommandExecutor.cpp(465) Still have 1 browsers
T 2022-05-02 12:05:13:258 C:\Projects\selenium\cpp\iedriver\IECommandExecutor.cpp(468) Still awaiting close of browser with ID a514800a-286b-490d-81e8-1474cdaba229
T 2022-05-02 12:05:13:258 C:\Projects\selenium\cpp\iedriver\IECommandExecutor.cpp(1190) Entering IECommandExecutor::IsAlertActive
T 2022-05-02 12:05:13:258 C:\Projects\selenium\cpp\iedriver\Browser.cpp(868) Entering Browser::GetActiveDialogWindowHandle
T 2022-05-02 12:05:13:258 C:\Projects\selenium\cpp\iedriver\Browser.cpp(315) Entering Browser::GetContentWindowHandle
D 2022-05-02 12:05:13:258 C:\Projects\selenium\cpp\iedriver\IECommandExecutor.cpp(1207) No alert handle is found

T 2022-05-02 12:05:13:319 C:\Projects\selenium\cpp\iedriver\IECommandExecutor.cpp(463) Entering IECommandExecutor::OnAllBrowserCloseWait
T 2022-05-02 12:05:13:319 C:\Projects\selenium\cpp\iedriver\IECommandExecutor.cpp(465) Still have 1 browsers
T 2022-05-02 12:05:13:319 C:\Projects\selenium\cpp\iedriver\IECommandExecutor.cpp(468) Still awaiting close of browser with ID a514800a-286b-490d-81e8-1474cdaba229
T 2022-05-02 12:05:13:319 C:\Projects\selenium\cpp\iedriver\IECommandExecutor.cpp(1190) Entering IECommandExecutor::IsAlertActive
T 2022-05-02 12:05:13:319 C:\Projects\selenium\cpp\iedriver\Browser.cpp(868) Entering Browser::GetActiveDialogWindowHandle
T 2022-05-02 12:05:13:319 C:\Projects\selenium\cpp\iedriver\Browser.cpp(315) Entering Browser::GetContentWindowHandle
D 2022-05-02 12:05:13:319 C:\Projects\selenium\cpp\iedriver\IECommandExecutor.cpp(1207) No alert handle is found
T 2022-05-02 12:05:13:371 C:\Projects\selenium\cpp\iedriver\IECommandExecutor.cpp(463) Entering IECommandExecutor::OnAllBrowserCloseWait
T 2022-05-02 12:05:13:372 C:\Projects\selenium\cpp\iedriver\IECommandExecutor.cpp(465) Still have 1 browsers
T 2022-05-02 12:05:13:372 C:\Projects\selenium\cpp\iedriver\IECommandExecutor.cpp(468) Still awaiting close of browser with ID a514800a-286b-490d-81e8-1474cdaba229
T 2022-05-02 12:05:13:372 C:\Projects\selenium\cpp\iedriver\IECommandExecutor.cpp(1190) Entering IECommandExecutor::IsAlertActive
T 2022-05-02 12:05:13:372 C:\Projects\selenium\cpp\iedriver\Browser.cpp(868) Entering Browser::GetActiveDialogWindowHandle
T 2022-05-02 12:05:13:372 C:\Projects\selenium\cpp\iedriver\Browser.cpp(315) Entering Browser::GetContentWindowHandle
D 2022-05-02 12:05:13:372 C:\Projects\selenium\cpp\iedriver\IECommandExecutor.cpp(1207) No alert handle is found
T 2022-05-02 12:05:13:443 C:\Projects\selenium\cpp\iedriver\IECommandExecutor.cpp(463) Entering IECommandExecutor::OnAllBrowserCloseWait
T 2022-05-02 12:05:13:443 C:\Projects\selenium\cpp\iedriver\IECommandExecutor.cpp(465) Still have 1 browsers
T 2022-05-02 12:05:13:443 C:\Projects\selenium\cpp\iedriver\IECommandExecutor.cpp(468) Still awaiting close of browser with ID a514800a-286b-490d-81e8-1474cdaba229
T 2022-05-02 12:05:13:443 C:\Projects\selenium\cpp\iedriver\IECommandExecutor.cpp(1190) Entering IECommandExecutor::IsAlertActive
T 2022-05-02 12:05:13:443 C:\Projects\selenium\cpp\iedriver\Browser.cpp(868) Entering Browser::GetActiveDialogWindowHandle
T 2022-05-02 12:05:13:443 C:\Projects\selenium\cpp\iedriver\Browser.cpp(315) Entering Browser::GetContentWindowHandle
D 2022-05-02 12:05:13:443 C:\Projects\selenium\cpp\iedriver\IECommandExecutor.cpp(1207) No alert handle is found
T 2022-05-02 12:05:13:505 C:\Projects\selenium\cpp\iedriver\IECommandExecutor.cpp(463) Entering IECommandExecutor::OnAllBrowserCloseWait
T 2022-05-02 12:05:13:505 C:\Projects\selenium\cpp\iedriver\IECommandExecutor.cpp(465) Still have 1 browsers
T 2022-05-02 12:05:13:505 C:\Projects\selenium\cpp\iedriver\IECommandExecutor.cpp(468) Still awaiting close of browser with ID a514800a-286b-490d-81e8-1474cdaba229
T 2022-05-02 12:05:13:505 C:\Projects\selenium\cpp\iedriver\IECommandExecutor.cpp(1190) Entering IECommandExecutor::IsAlertActive
T 2022-05-02 12:05:13:505 C:\Projects\selenium\cpp\iedriver\Browser.cpp(868) Entering Browser::GetActiveDialogWindowHandle
T 2022-05-02 12:05:13:505 C:\Projects\selenium\cpp\iedriver\Browser.cpp(315) Entering Browser::GetContentWindowHandle
D 2022-05-02 12:05:13:506 C:\Projects\selenium\cpp\iedriver\IECommandExecutor.cpp(1207) No alert handle is found
T 2022-05-02 12:05:13:568 C:\Projects\selenium\cpp\iedriver\IECommandExecutor.cpp(463) Entering IECommandExecutor::OnAllBrowserCloseWait
T 2022-05-02 12:05:13:568 C:\Projects\selenium\cpp\iedriver\IECommandExecutor.cpp(465) Still have 1 browsers
T 2022-05-02 12:05:13:568 C:\Projects\selenium\cpp\iedriver\IECommandExecutor.cpp(468) Still awaiting close of browser with ID a514800a-286b-490d-81e8-1474cdaba229
T 2022-05-02 12:05:13:568 C:\Projects\selenium\cpp\iedriver\IECommandExecutor.cpp(1190) Entering IECommandExecutor::IsAlertActive
T 2022-05-02 12:05:13:568 C:\Projects\selenium\cpp\iedriver\Browser.cpp(868) Entering Browser::GetActiveDialogWindowHandle
T 2022-05-02 12:05:13:568 C:\Projects\selenium\cpp\iedriver\Browser.cpp(315) Entering Browser::GetContentWindowHandle
D 2022-05-02 12:05:13:568 C:\Projects\selenium\cpp\iedriver\IECommandExecutor.cpp(1207) No alert handle is found
T 2022-05-02 12:05:13:639 C:\Projects\selenium\cpp\iedriver\IECommandExecutor.cpp(463) Entering IECommandExecutor::OnAllBrowserCloseWait
T 2022-05-02 12:05:13:639 C:\Projects\selenium\cpp\iedriver\IECommandExecutor.cpp(465) Still have 1 browsers
T 2022-05-02 12:05:13:639 C:\Projects\selenium\cpp\iedriver\IECommandExecutor.cpp(468) Still awaiting close of browser with ID a514800a-286b-490d-81e8-1474cdaba229
T 2022-05-02 12:05:13:639 C:\Projects\selenium\cpp\iedriver\IECommandExecutor.cpp(1190) Entering IECommandExecutor::IsAlertActive
T 2022-05-02 12:05:13:639 C:\Projects\selenium\cpp\iedriver\Browser.cpp(868) Entering Browser::GetActiveDialogWindowHandle
T 2022-05-02 12:05:13:639 C:\Projects\selenium\cpp\iedriver\Browser.cpp(315) Entering Browser::GetContentWindowHandle
D 2022-05-02 12:05:13:639 C:\Projects\selenium\cpp\iedriver\IECommandExecutor.cpp(1207) No alert handle is found
T 2022-05-02 12:05:13:697 C:\Projects\selenium\cpp\iedriver\IECommandExecutor.cpp(463) Entering IECommandExecutor::OnAllBrowserCloseWait
T 2022-05-02 12:05:13:697 C:\Projects\selenium\cpp\iedriver\IECommandExecutor.cpp(465) Still have 1 browsers
T 2022-05-02 12:05:13:697 C:\Projects\selenium\cpp\iedriver\IECommandExecutor.cpp(468) Still awaiting close of browser with ID a514800a-286b-490d-81e8-1474cdaba229
T 2022-05-02 12:05:13:697 C:\Projects\selenium\cpp\iedriver\IECommandExecutor.cpp(1190) Entering IECommandExecutor::IsAlertActive
T 2022-05-02 12:05:13:697 C:\Projects\selenium\cpp\iedriver\Browser.cpp(868) Entering Browser::GetActiveDialogWindowHandle
T 2022-05-02 12:05:13:697 C:\Projects\selenium\cpp\iedriver\Browser.cpp(315) Entering Browser::GetContentWindowHandle
D 2022-05-02 12:05:13:697 C:\Projects\selenium\cpp\iedriver\IECommandExecutor.cpp(1207) No alert handle is found
T 2022-05-02 12:05:13:755 C:\Projects\selenium\cpp\iedriver\IECommandExecutor.cpp(463) Entering IECommandExecutor::OnAllBrowserCloseWait
T 2022-05-02 12:05:13:755 C:\Projects\selenium\cpp\iedriver\IECommandExecutor.cpp(465) Still have 1 browsers
T 2022-05-02 12:05:13:755 C:\Projects\selenium\cpp\iedriver\IECommandExecutor.cpp(468) Still awaiting close of browser with ID a514800a-286b-490d-81e8-1474cdaba229
T 2022-05-02 12:05:13:755 C:\Projects\selenium\cpp\iedriver\IECommandExecutor.cpp(1190) Entering IECommandExecutor::IsAlertActive
T 2022-05-02 12:05:13:755 C:\Projects\selenium\cpp\iedriver\Browser.cpp(868) Entering Browser::GetActiveDialogWindowHandle
T 2022-05-02 12:05:13:755 C:\Projects\selenium\cpp\iedriver\Browser.cpp(315) Entering Browser::GetContentWindowHandle
D 2022-05-02 12:05:13:755 C:\Projects\selenium\cpp\iedriver\IECommandExecutor.cpp(1207) No alert handle is found
T 2022-05-02 12:05:13:818 C:\Projects\selenium\cpp\iedriver\IECommandExecutor.cpp(463) Entering IECommandExecutor::OnAllBrowserCloseWait
T 2022-05-02 12:05:13:818 C:\Projects\selenium\cpp\iedriver\IECommandExecutor.cpp(465) Still have 1 browsers
T 2022-05-02 12:05:13:818 C:\Projects\selenium\cpp\iedriver\IECommandExecutor.cpp(468) Still awaiting close of browser with ID a514800a-286b-490d-81e8-1474cdaba229
T 2022-05-02 12:05:13:818 C:\Projects\selenium\cpp\iedriver\IECommandExecutor.cpp(1190) Entering IECommandExecutor::IsAlertActive
T 2022-05-02 12:05:13:818 C:\Projects\selenium\cpp\iedriver\Browser.cpp(868) Entering Browser::GetActiveDialogWindowHandle
T 2022-05-02 12:05:13:818 C:\Projects\selenium\cpp\iedriver\Browser.cpp(315) Entering Browser::GetContentWindowHandle
D 2022-05-02 12:05:13:818 C:\Projects\selenium\cpp\iedriver\IECommandExecutor.cpp(1207) No alert handle is found
T 2022-05-02 12:05:13:884 C:\Projects\selenium\cpp\iedriver\IECommandExecutor.cpp(463) Entering IECommandExecutor::OnAllBrowserCloseWait
T 2022-05-02 12:05:13:884 C:\Projects\selenium\cpp\iedriver\IECommandExecutor.cpp(465) Still have 1 browsers
T 2022-05-02 12:05:13:884 C:\Projects\selenium\cpp\iedriver\IECommandExecutor.cpp(468) Still awaiting close of browser with ID a514800a-286b-490d-81e8-1474cdaba229
T 2022-05-02 12:05:13:884 C:\Projects\selenium\cpp\iedriver\IECommandExecutor.cpp(1190) Entering IECommandExecutor::IsAlertActive
T 2022-05-02 12:05:13:884 C:\Projects\selenium\cpp\iedriver\Browser.cpp(868) Entering Browser::GetActiveDialogWindowHandle
T 2022-05-02 12:05:13:884 C:\Projects\selenium\cpp\iedriver\Browser.cpp(315) Entering Browser::GetContentWindowHandle
D 2022-05-02 12:05:13:884 C:\Projects\selenium\cpp\iedriver\IECommandExecutor.cpp(1207) No alert handle is found
T 2022-05-02 12:05:13:943 C:\Projects\selenium\cpp\iedriver\IECommandExecutor.cpp(463) Entering IECommandExecutor::OnAllBrowserCloseWait
T 2022-05-02 12:05:13:943 C:\Projects\selenium\cpp\iedriver\IECommandExecutor.cpp(465) Still have 1 browsers
T 2022-05-02 12:05:13:943 C:\Projects\selenium\cpp\iedriver\IECommandExecutor.cpp(468) Still awaiting close of browser with ID a514800a-286b-490d-81e8-1474cdaba229
T 2022-05-02 12:05:13:943 C:\Projects\selenium\cpp\iedriver\IECommandExecutor.cpp(1190) Entering IECommandExecutor::IsAlertActive
T 2022-05-02 12:05:13:943 C:\Projects\selenium\cpp\iedriver\Browser.cpp(868) Entering Browser::GetActiveDialogWindowHandle
T 2022-05-02 12:05:13:943 C:\Projects\selenium\cpp\iedriver\Browser.cpp(315) Entering Browser::GetContentWindowHandle
D 2022-05-02 12:05:13:943 C:\Projects\selenium\cpp\iedriver\IECommandExecutor.cpp(1207) No alert handle is found
T 2022-05-02 12:05:14:008 C:\Projects\selenium\cpp\iedriver\IECommandExecutor.cpp(463) Entering IECommandExecutor::OnAllBrowserCloseWait
T 2022-05-02 12:05:14:008 C:\Projects\selenium\cpp\iedriver\IECommandExecutor.cpp(465) Still have 1 browsers
T 2022-05-02 12:05:14:008 C:\Projects\selenium\cpp\iedriver\IECommandExecutor.cpp(468) Still awaiting close of browser with ID a514800a-286b-490d-81e8-1474cdaba229
T 2022-05-02 12:05:14:008 C:\Projects\selenium\cpp\iedriver\IECommandExecutor.cpp(1190) Entering IECommandExecutor::IsAlertActive
T 2022-05-02 12:05:14:008 C:\Projects\selenium\cpp\iedriver\Browser.cpp(868) Entering Browser::GetActiveDialogWindowHandle
T 2022-05-02 12:05:14:008 C:\Projects\selenium\cpp\iedriver\Browser.cpp(315) Entering Browser::GetContentWindowHandle
D 2022-05-02 12:05:14:008 C:\Projects\selenium\cpp\iedriver\IECommandExecutor.cpp(1207) No alert handle is found
T 2022-05-02 12:05:14:067 C:\Projects\selenium\cpp\iedriver\IECommandExecutor.cpp(463) Entering IECommandExecutor::OnAllBrowserCloseWait
T 2022-05-02 12:05:14:068 C:\Projects\selenium\cpp\iedriver\IECommandExecutor.cpp(465) Still have 1 browsers
T 2022-05-02 12:05:14:068 C:\Projects\selenium\cpp\iedriver\IECommandExecutor.cpp(468) Still awaiting close of browser with ID a514800a-286b-490d-81e8-1474cdaba229
T 2022-05-02 12:05:14:068 C:\Projects\selenium\cpp\iedriver\IECommandExecutor.cpp(1190) Entering IECommandExecutor::IsAlertActive
T 2022-05-02 12:05:14:068 C:\Projects\selenium\cpp\iedriver\Browser.cpp(868) Entering Browser::GetActiveDialogWindowHandle
T 2022-05-02 12:05:14:068 C:\Projects\selenium\cpp\iedriver\Browser.cpp(315) Entering Browser::GetContentWindowHandle
D 2022-05-02 12:05:14:068 C:\Projects\selenium\cpp\iedriver\IECommandExecutor.cpp(1207) No alert handle is found
T 2022-05-02 12:05:14:131 C:\Projects\selenium\cpp\iedriver\IECommandExecutor.cpp(463) Entering IECommandExecutor::OnAllBrowserCloseWait
T 2022-05-02 12:05:14:131 C:\Projects\selenium\cpp\iedriver\IECommandExecutor.cpp(465) Still have 1 browsers
T 2022-05-02 12:05:14:131 C:\Projects\selenium\cpp\iedriver\IECommandExecutor.cpp(468) Still awaiting close of browser with ID a514800a-286b-490d-81e8-1474cdaba229
T 2022-05-02 12:05:14:132 C:\Projects\selenium\cpp\iedriver\IECommandExecutor.cpp(1190) Entering IECommandExecutor::IsAlertActive
T 2022-05-02 12:05:14:132 C:\Projects\selenium\cpp\iedriver\Browser.cpp(868) Entering Browser::GetActiveDialogWindowHandle
T 2022-05-02 12:05:14:132 C:\Projects\selenium\cpp\iedriver\Browser.cpp(315) Entering Browser::GetContentWindowHandle
D 2022-05-02 12:05:14:132 C:\Projects\selenium\cpp\iedriver\IECommandExecutor.cpp(1207) No alert handle is found
T 2022-05-02 12:05:14:194 C:\Projects\selenium\cpp\iedriver\IECommandExecutor.cpp(463) Entering IECommandExecutor::OnAllBrowserCloseWait
T 2022-05-02 12:05:14:194 C:\Projects\selenium\cpp\iedriver\IECommandExecutor.cpp(465) Still have 1 browsers
T 2022-05-02 12:05:14:194 C:\Projects\selenium\cpp\iedriver\IECommandExecutor.cpp(468) Still awaiting close of browser with ID a514800a-286b-490d-81e8-1474cdaba229
T 2022-05-02 12:05:14:194 C:\Projects\selenium\cpp\iedriver\IECommandExecutor.cpp(1190) Entering IECommandExecutor::IsAlertActive
T 2022-05-02 12:05:14:194 C:\Projects\selenium\cpp\iedriver\Browser.cpp(868) Entering Browser::GetActiveDialogWindowHandle
T 2022-05-02 12:05:14:194 C:\Projects\selenium\cpp\iedriver\Browser.cpp(315) Entering Browser::GetContentWindowHandle
D 2022-05-02 12:05:14:194 C:\Projects\selenium\cpp\iedriver\IECommandExecutor.cpp(1207) No alert handle is found

Operating System

Windows 10

Selenium version

Selenium Java 4.1.2

What are the browser(s) and version(s) where you see this issue?

Edge in IEMode

What are the browser driver(s) and version(s) where you see this issue?

InternetExplorer Driver 4.0.0

Are you using Selenium Grid?

Yes - 4.1.4

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 24 (10 by maintainers)

Most upvoted comments

Seems like #11079 has fixed the problem. We are not experiencing the issue anymore after upgrade to v4.6.

No updates, if something new comes up, we will comment here.

After further investigation, I could see that, the below event did not fire when browser_.Quit() called on IWebBrowser2, because of that reason the managed browser handler keeps hanging in driver instance.

void __stdcall Browser::OnQuit()

Any reason why the OnQuit() event not fired sometimes?