Jump to content

Connect SuperML | Leeroopedia MCP: Equip your AI agents with best practices, code verification, and debugging knowledge. Powered by Leeroo — building Organizational Superintelligence. Contact us at founders@leeroo.com.

Implementation:Microsoft Playwright TraceV5

From Leeroopedia

Template:Implementation Page

Overview

TraceV5 defines the type schema for version 5 of the Playwright trace file format, continuing the evolution from V4 with refined event types and metadata.

Description

Version 5 of the trace format maintains the same base types as V4 (Language, Point, Size, SerializedValue with BigInt/Map/Set support) and refines the trace event schema. The format continues to use JSON-lines within ZIP archives for trace data storage.

Usage

Used by the trace viewer for parsing V5 format trace files.

Code Reference

Source Location

packages/playwright-core/src/utils/isomorphic/trace/versions/traceV5.ts (225 lines)

Key Types

type Language = 'javascript' | 'python' | 'java' | 'csharp' | 'jsonl';
type Point = { x: number; y: number };
type Size = { width: number; height: number };
type StackFrame = { file: string; line: number; column: number; function?: string };

Import

import type * as traceV5 from '../utils/isomorphic/trace/versions/traceV5';

I/O Contract

Data Format

  • JSON-lines within ZIP archives
  • Typed events with discriminator fields
  • HAR-based resource snapshots

Related Pages

Page Connections

Double-click a node to navigate. Hold to expand connections.
Principle
Implementation
Heuristic
Environment