Skip to main content
Module

x/puppeteer/mod.ts>Tracing

A port of puppeteer running on Deno
Latest
class Tracing
Re-export
import { Tracing } from "https://deno.land/x/puppeteer@16.2.0/mod.ts";

The Tracing class exposes the tracing audit interface.

Examples

Example 1

await page.tracing.start({path: 'trace.json'});
await page.goto('https://www.google.com');
await page.tracing.stop();

Constructors

new
Tracing(client: CDPSession)

Methods

start(options?: TracingOptions): Promise<void>

Starts a trace for the current page.

stop(): Promise<Buffer | undefined>

Stops a trace started with the start method.