You can use tracing.start and tracing.stop to create a trace file which can be opened in Chrome DevTools or timeline viewer. You can use tracing.start and tracing.stop to create a trace file which can be opened in Chrome DevTools or timeline viewer.
tracing.start
tracing.stop
await page.tracing.start({path: 'trace.json'}); await page.goto('https://www.google.com'); await page.tracing.stop();
You can use
tracing.start
andtracing.stop
to create a trace file which can be opened in Chrome DevTools or timeline viewer. You can usetracing.start
andtracing.stop
to create a trace file which can be opened in Chrome DevTools or timeline viewer.await page.tracing.start({path: 'trace.json'}); await page.goto('https://www.google.com'); await page.tracing.stop();