Playwright · Command
playwright test --trace on
Playwright Trace Viewer helps you inspect recorded test traces after a script runs. It shows actions, page states, logs, network activity, errors, console output, and DOM snapshots.
Last updated
Syntax
npx playwright show-trace path/to/trace.zip
trace: 'on-first-retry'In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
Trace ViewertestOptions.tracebrowserContext.tracingHTML ReporterUI Modenpx playwright show-tracenpx playwright show-report