You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[π Bug]: [py] CDP WebSocket connection timeout is too shortΒ #16260
This works for most cases, but certain CDP methods can legitimately exceed this limit.
For example, HeapProfiler.takeHeapSnapshot only returns after the full snapshot has been sent via events. In my observations, on large webpages where the snapshot can exceed several hundred MBs, execution may take longer than 30 seconds. In such cases, WebSocketConnection._wait_until silently times out and returns, which in turn causes subsequent code to crash.
However, I'm not entirely sure the best way to fix the problem:
The most obvious solution would be to increase the timeout, but that's probably not optimal
Adding a parameter to the constructor WebSocketConnection would result in significant code changes, since all call sites need to be updated as well
Making the timeout a property could be confusing, since the constructor would still use the fixed timeout (though it likely won't hit the limit)
Activity
selenium-ci commentedon Aug 26, 2025
@nxs7, thank you for creating this issue. We will troubleshoot it as soon as we can.
Selenium Triage Team: remember to follow the Triage Guide
navin772 commentedon Aug 26, 2025
Hi @nxs7, we already have a PR open to resolve this issue - #16248
nxs7 commentedon Aug 26, 2025
Great! Got it.
github-actions commentedon Nov 12, 2025
This issue has been automatically locked since there has not been any recent activity since it was closed. Please open a new issue for related bugs.