class: Tracing v0.9.0 你可以使用 tracing.start 和 tracing.stop 創(chuàng)建一個可以在 Chrome DevTools or timeline viewer 中打開的跟蹤文件。
await page.tracing.start({path: 'trace.json'});
await page.goto('https://www.google.com');
await page.tracing.stop();
tracing.start(options)v0.9.0 tracing.stop()v0.9.0
更多建議: