Have you read the Contributing Guidelines on issues?
WebdriverIO Version
latest
Node.js Version
22.9
Mode
WDIO Testrunner
Which capabilities are you using?
capabilities: [
{
browserName: "chrome",
"wdio:enforceWebDriverClassic": true,
}]
What happened?
This is the same bug that was reported by issue 13882. Erwin H in the Support Chat mentioned to create a new issue off of that PR. To avoid repeating details, the original issue is #13882
What is your expected behavior?
To not receive errors when switching windows and closing.
How to reproduce the bug.
See details in #13882
Relevant log output
WebDriverError: no such window: target window already closed
Code of Conduct
Is there an existing issue for this?