Session recording
rrweb-driven DOM recording. Replay every session in the console or download the events programmatically.
Enable recording
const browser = await client.launch({
recording: true,
})
const page = await browser.newPage()
await page.goto("https://example.com")
const sessionId = browser.id
await browser.close()Read replays back
// Presigned URL — hand to rrweb-player or fetch yourself.
const { url, expiresInSeconds } =
await client.sessions.getReplayUrl(sessionId)
// Or download as NDJSON bytes (gzip is decompressed transparently).
const ndjson = await client.sessions.downloadReplay(sessionId)Each line of the NDJSON is a standard rrweb event. Replays are also viewable in the console — click any session row and hit Replay.
Sensitive form data
Recording captures input values by default. Handle replays of sessions that touch passwords, payment data, or other sensitive input with care — restrict who can read them and purge them on the cadence your compliance posture requires.