I've been using Playwright Trace Viewer successfully on Windows 10, but after upgrading to Windows 11, it stopped working.
When I run the command: npx playwright show-trace <trace.zip
I get the following error: Error: Protocol error (Browser.getVersion): Internal server error, session closed.
I also tried specifying the browser: npx playwright show-trace <trace.zip> -b webk
This launches the Trace Viewer window, but it fails to authenticate. The URL it tries to open looks like http://[::1]:, and I suspect a firewall or security policy is blocking it.
What I’ve Verified:
Trace files are generated correctly on Windows 11. The same trace files work fine on a teammate’s Windows 10 machine. The web version of the Trace Viewer works perfectly for all trace files. The issue seems isolated to the local viewer command on Windows 11.
Environment:
OS: Windows 11 Playwright version: 1.53.0 Language: C# (.NET 8)
What I’m Looking For:
Has anyone successfully used Playwright Trace Viewer on Windows 11? Any known issues or workarounds? Suggestions for debugging the Browser.getVersion protocol error?
Thanks in advance!