Skip to content
masterclass Buddy

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.

Subscribe
  • Trace Viewer
  • testOptions.trace
  • browserContext.tracing
  • HTML Reporter
  • UI Mode
  • npx playwright show-trace
  • npx playwright show-report

Source: Trace viewer | Playwright. Checked 2026-11-03.