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
Observe that nothing happened. Looks like no intercept occured. This was posted in discord and the following was spotted
mxschmitt —
do you mind filing a bug on GitHub?
Looks like its parsed as glob and the wss:// confuses the matching logic.
to make it work you can do:
await page.routeWebSocket(/echo.websocket.org/, ws => {
Version
1.48.0
Steps to reproduce
Pre-req: Ensure you have playwright repo already setup
Expected behavior
I was expecting to see "Intercepted Hello chatbot" shown
I was also expecting the following to work but it didn't
await page.routeWebSocket('/echo.websocket.org/'...
Actual behavior
Observe that nothing happened. Looks like no intercept occured. This was posted in discord and the following was spotted
mxschmitt —
do you mind filing a bug on GitHub?
Looks like its parsed as glob and the wss:// confuses the matching logic.
to make it work you can do:
await page.routeWebSocket(/echo.websocket.org/, ws => {
This worked after making the above change
Additional context
No response
Environment
System:
OS: macOS 14.6.1
CPU: (12) arm64 Apple M3 Pro
Memory: 56.78 MB / 18.00 GB
Binaries:
Node: 20.14.0 - ~/.nvm/versions/node/v20.14.0/bin/node
npm: 10.7.0 - ~/.nvm/versions/node/v20.14.0/bin/npm
IDEs:
VSCode: 1.93.1 - /usr/local/bin/code
Languages:
Bash: 3.2.57 - /bin/bash
npmPackages:
@playwright/test: ^1.48.0 => 1.48.0
The text was updated successfully, but these errors were encountered: