webdriver-bidi-protocol

This repository contains TypeScript types conforming to the [WebDriver BiDi](https://w3c.github.io/webdriver-bidi/) specification. It also supports WebDriver BiDi extension modules defined in other specifications:

Apache-2.0 43 个版本
安装
npm install webdriver-bidi-protocol
yarn add webdriver-bidi-protocol
pnpm add webdriver-bidi-protocol
bun add webdriver-bidi-protocol
README

webdriver-bidi-protocol

This repository contains TypeScript types conforming to the WebDriver BiDi specification. It also supports WebDriver BiDi extension modules defined in other specifications:

Installation

npm install webdriver-bidi-protocol

Usage

In your TypeScript client implementation, you can now import WebDriver BiDi types:

import {Commands} from 'webdriver-bidi-protocol';

async function sendCommand<T extends keyof Commands>(
  method: T,
  params: Commands[T]['params']
): {result: Commands[T]['returnType']} {
  // Implementation for sending the data using WebSockets.
}

// Now TypeScript validates that the params match the spec for 'browsingContext.print'.
await sendCommand('browsingContext.print', {context: 'xxx'});

Versioning

This package patch version will be incremented whenever there are specification updates.

版本列表
0.4.2 2026-05-22
0.4.1 2026-02-11
0.4.0 2026-01-20
0.3.11 2026-01-13
0.3.10 2025-12-11
0.3.9 2025-11-19
0.3.8 2025-10-12
0.3.7 2025-10-07
0.3.6 2025-09-26
0.3.5 2025-09-25
0.3.4 2025-09-25
0.3.3 2025-09-25
0.3.2 2025-09-24
0.3.1 2025-09-23
0.3.0 2025-09-15
0.2.11 2025-09-10
0.2.10 2025-09-09
0.2.9 2025-09-09
0.2.8 2025-09-09
0.2.7 2025-09-08
0.2.6 2025-08-26
0.2.5 2025-08-08
0.2.4 2025-08-01
0.2.3 2025-08-01
0.2.2 2025-07-14
0.2.1 2025-07-01
0.2.0 2025-06-26
0.1.9 2025-06-18
0.1.8 2025-04-09
0.1.7 2025-03-06
0.1.6 2025-01-20
0.1.5 2025-01-19
0.1.4 2025-01-08
0.1.3 2024-12-20
0.1.2 2024-12-08
0.1.1 2024-12-03
0.1.0 2024-12-02
0.0.8 2024-07-10
0.0.7 2024-07-04
0.0.6 2024-07-02
0.0.5 2024-07-02
0.0.4 2024-06-28
0.0.1 2024-06-24