1

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!

3
  • 1
    Please clarify your specific problem or provide additional details to highlight exactly what you need. As it's currently written, it's hard to tell exactly what you're asking. Commented Sep 1 at 16:13
  • "Does playwright Trace viewer worked in Windows 11 for anyone?" I'm sure it does. How are you creating your trace? Can you provide a minimal reproducible example or provide the trace? Was the trace originally created on Windows 10 or 11? Commented Sep 1 at 16:59
  • Hi Ggorlen, I have updated my question with additional details, I am creating scenario level trace file in my Hooks. Trace file creation is fine, I am able to view this file in Windows 10 machine but facing an issue in Windows 11 machine and not able to view the trace viewer. Note: The web version of playwright trace viewer is working for me, the command way of accessing in my local machine is not working. Commented Sep 2 at 22:41

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.