Implementation:Microsoft Playwright WebKit Protocol Types
| Knowledge Sources | |
|---|---|
| Domains | TypeDefinitions, WebKitProtocol |
| Last Updated | 2026-02-12 00:00 GMT |
Overview
Auto-generated TypeScript type definitions for the WebKit Inspector Protocol, used internally by Playwright's WebKit browser driver.
Description
This file (~9,783 lines) is generated by /utils/protocol-types-generator/index.js and provides TypeScript type definitions for the WebKit Web Inspector protocol. All types are organized under the Protocol namespace with sub-namespaces for each inspector domain.
Key WebKit Inspector domains include:
- Animation:
AnimationId,AnimationState,PlaybackDirection,FillMode,Effect,Keyframe-- tracking and modifying Web Animations, CSS animations, and transitions - CSS: Style sheet inspection and modification, computed styles, CSS rule matching
- Console: Console message types, stack traces, call frames
- DOM: Node inspection, shadow DOM, attribute modification, DOM events
- Debugger: Script debugging, breakpoints, stepping, scope inspection
- Emulation: Device emulation overrides
- Heap: Heap snapshots and garbage collection
- Network: Request/response interception, WebSocket frames, resource loading
- Page: Frame tree, navigation, screenshots, content overrides
- Runtime: JavaScript execution contexts, remote object handling
The file defines a binary type alias (type binary = string) for base64-encoded binary data used in protocol messages.
Usage
These types are imported by Playwright's WebKit connection layer (src/server/webkit/) to provide type-safe communication with WebKit's Inspector protocol. They ensure compile-time type checking when issuing inspector commands to WebKit-based browsers.
Code Reference
Source Location
- Repository: Microsoft_Playwright
- File:
packages/playwright-core/src/server/webkit/protocol.d.ts
Import
import { Protocol } from './protocol';
Generation
# This file is auto-generated; do not edit manually
# Generated by: /utils/protocol-types-generator/index.js