Hello
We're observing a flaky test in our browser automation suite that appears to be caused by chromedriver closing the connection with selenium, and we were wondering if it's something to do with the way chromedriver handles closing tabs. We think chromedriver might be exiting the chrome process altogether instead of just closing one tab.
The chromedriver connection is closed after our test closes a tab via a button that runs window.close().
Most of the time however, the connection remains open and our test suite works normally.
When the connection is closed the rest of the tests in our suite fail.
I've attached debug logs from chrome driver for an instance of this occurring
here.
The tab is first opened on this log line:
[1674174010.232][INFO]: [e22779aeebb3438c9b85b8722654ba80] COMMAND ClickElement {
"id": "434e1478-55db-4dca-ba23-9b82dc63ede1"
}
And the click that seems to close everything is here:
[1674174011.899][INFO]: [e22779aeebb3438c9b85b8722654ba80] COMMAND ClickElement {
"id": "24d12ae4-2ad8-4337-8427-abd0cacb9b7e"
}