Skip to content

Tests fail with "Error: WebSocket connection closed" for Chrome 130.0.6723.6 (2024-09-18) #8286

@thomas-jakemeyn

Description

@thomas-jakemeyn

What is your Scenario?

We run the exact same 170+ TestCafe tests against the latest version of Chrome and Chrome Beta.

What is the Current behavior?

Our tests still pass for Chrome. However, the majority of them started failing for Chrome Beta with the stacktrace below after we upgraded to the version 130.0.6723.6. That version has been promoted to the Beta channel on September 18, 2024 (see here).

Error: WebSocket connection closed
at node_modules/chrome-remote-interface/lib/chrome.js:94:35
at Chrome._handleConnectionClose (node_modules/chrome-remote-interface/lib/chrome.js:256:13)
at WebSocket.<anonymous> (node_modules/chrome-remote-interface/lib/chrome.js:243:22)
at WebSocket.emit (node:events:519:28)
at WebSocket.emit (node:domain:488:12)
at WebSocket.emitClose (node_modules/ws/lib/websocket.js:246:10)
at Socket.socketOnClose (node_modules/ws/lib/websocket.js:1150:15)
at Socket.emit (node:events:519:28)
at Socket.emit (node:domain:488:12)
at TCP.<anonymous> (node:net:339:12)

What is the Expected behavior?

Running tests against Chrome 130.0.6723.6 should not trigger Error: WebSocket connection closed.

What is the public URL of the test page? (attach your complete example)

NA

What is your TestCafe test code?

NA

Your complete configuration file

No response

Your complete test report

No response

Screenshots

No response

Steps to Reproduce

TestCafe version

3.6.2

Node.js version

No response

Command-line arguments

NA

Browser name(s) and version(s)

No response

Platform(s) and version(s)

No response

Other

No response

Metadata

Metadata

Assignees

Labels

TYPE: bugThe described behavior is considered as wrong (bug).

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions