Skip to content
masterclass Buddy

Playwright · Class

Tracing

Playwright tracing records browser actions and network activity for later inspection in Trace Viewer. Start it before actions, then stop it and save the trace to a file.

Last updated

Since
v1.12

Syntax

await context.tracing.start(options);
await context.tracing.stop({ path: 'trace.zip' });

In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.

Subscribe
  • tracing.group
  • tracing.groupEnd
  • tracing.startChunk
  • tracing.startHar
  • tracing.stop
  • tracing.stopChunk
  • tracing.stopHar

Source: Tracing | Playwright. Checked 2026-11-03.