npx playwright show-trace trace.zip

Category: Web App Development

npx playwright show-trace trace.zip

Inspect a Playwright trace recording

Opens the trace viewer for trace.zip, showing every action, network request and console message from a failed test. Traces are recorded automatically on test failure. They are the fastest way to diagnose flaky end-to-end tests.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.