WebSocket frame tracing for Playwright trace viewer. Version 1.1.2 (stable, monthly releases). Adds WebSocket frame recording (sent/received) and a dedicated WS filter in the Network tab. Unlike built-in Playwright, captures full frame payloads with timestamps and direction. Patches Playwright on install via CDP hooks. Requires @playwright/test >=1.40.0 and Node >=18. Alternative to Microsoft's rejected PR #38427.
npm install playwright-ws-traceNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to enable tracing (trace: 'on'), start/stop, and view WebSocket frames in trace viewer.
Re-run: npm uninstall playwright-ws-trace && npm install playwright-ws-trace OR node node_modules/playwright-ws-trace/scripts/postinstall.js --force
Add 'playwright-ws-trace' to trustedDependencies in package.json, then bun install
Check GitHub releases or consider pinning Playwright version
Monitor Playwright changelog for native WebSocket tracing support
Run: node node_modules/playwright-ws-trace/scripts/postinstall.js --force
Ensure @playwright/test >=1.40.0 and reinstall playwright-ws-trace