0

how do I create https://trace.playwright.my.local ?

as of now trace itself is not static website itself and requires some pre-processing https://github.com/microsoft/playwright/issues/9026

jonny
  • 1,326
  • 9
  • 44
  • 62

1 Answers1

0

You can try opening the saved trace using the Playwright CLI. For example, here is a tutorial on how to use the trace viewer locally.

Essentially:

npx playwright show-trace trace.zip # with a zip
npx playwright show-report # show report after running `npx playwright test --trace on` 

will end up displaying this:

enter image description here

LeoDog896
  • 3,472
  • 1
  • 15
  • 40
  • I know, question is how to setup .local website to secure sharing debug links – jonny Nov 10 '22 at 14:44
  • Then if you have the website its as simple as forwarding that website -- you can try using a reverse proxy such as caddy or nginx but product recommendations are outside of the scope of StackOverflow. – LeoDog896 Nov 10 '22 at 14:56