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.
SubscribeRelated
tracing.grouptracing.groupEndtracing.startChunktracing.startHartracing.stoptracing.stopChunktracing.stopHar