Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

webdriver-bidi-protocol

GoogleChromeLabs2.9mApache-2.00.3.8TypeScript support: included

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

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.

changelog

Changelog

0.3.8 (2025-10-12)

Bug Fixes

  • re-generate types based on specifciation updates (#278) (e4eea99)

0.3.7 (2025-10-07)

Bug Fixes

  • only include relevant files (#274) (f7480d3)
  • re-generate types based on specifciation updates (#273) (a9e97d1)

0.3.6 (2025-09-26)

Bug Fixes

  • re-generate types based on specifciation updates (#267) (de75a21)

0.3.5 (2025-09-25)

Bug Fixes

0.3.4 (2025-09-25)

Bug Fixes

  • generation should not emit ts imports (#262) (74bf1ad)

0.3.3 (2025-09-25)

Bug Fixes

  • correctly re-export mapping (#259) (dc18802)
  • re-generate types based on specifciation updates (#261) (0c0ea74)

0.3.2 (2025-09-24)

Bug Fixes

  • re-generate types based on specifciation updates (#257) (d5a2c22)

0.3.1 (2025-09-23)

Bug Fixes

  • generation of mapping (#251) (6c52528)
  • re-generate types based on specifciation updates (#249) (d625fd2)
  • re-generate types based on specifciation updates (#252) (d045d7b)

0.3.0 (2025-09-15)

Features

  • automatically generate command mapped types (#243) (3eb25f3)

Bug Fixes

  • re-generate types based on specifciation updates (#245) (c32b70d)

0.2.11 (2025-09-10)

Bug Fixes

  • add user agent override to the mapping (#240) (0336e7f)
  • re-generate types based on specifciation updates (#239) (2e52f5a)
  • re-generate types based on specifciation updates (#242) (8ae63cc)

0.2.10 (2025-09-09)

Bug Fixes

  • re-generate types based on specifciation updates (#236) (7b33604)

0.2.9 (2025-09-09)

Bug Fixes

0.2.8 (2025-09-09)

Bug Fixes

  • re-generate types based on specifciation updates (#233) (42c83fd)
  • use a helper for commands and events (#231) (e302d10)

0.2.7 (2025-09-08)

Bug Fixes

0.2.6 (2025-08-26)

Bug Fixes

  • re-generate types based on specifciation updates (#221) (53d49a7)

0.2.5 (2025-08-08)

Bug Fixes

  • re-generate types based on specifciation updates (#213) (eb37bb4)

0.2.4 (2025-08-01)

Bug Fixes

0.2.3 (2025-08-01)

Bug Fixes

  • re-generate types based on specifciation updates (#202) (db6f116)
  • re-generate types based on specifciation updates (#205) (8e75f89)

0.2.2 (2025-07-14)

Bug Fixes

  • re-generate types based on specifciation updates (#190) (7387ba3)

0.2.1 (2025-07-01)

Bug Fixes

  • re-generate types based on specifciation updates (#183) (daf944c)
  • re-generate types based on specifciation updates (#187) (d847f6a)

0.2.0 (2025-06-26)

Features

Bug Fixes

  • add repository (#19) (91def9d)
  • another repository fix (72c215c)
  • bump specs/webdriver-bidi from 0575bf7 to 9eaa877 (#65) (d0ed8ef)
  • bump specs/webdriver-bidi from 05a283e to 62b8dfe (#16) (51dac71)
  • bump specs/webdriver-bidi from 0c366b0 to a46d71b (#30) (c926381)
  • bump specs/webdriver-bidi from 0fa2d99 to 712c17f (#36) (5e35acb)
  • bump specs/webdriver-bidi from 287e9c6 to 0575bf7 (#59) (20ec66a)
  • bump specs/webdriver-bidi from 62b8dfe to 0c366b0 (#25) (e6da243)
  • bump specs/webdriver-bidi from 712c17f to 287e9c6 (#43) (2f378f5)
  • bump specs/webdriver-bidi from a46d71b to 0fa2d99 (#33) (596a0ab)
  • document usage (#7) (d98a6ee)
  • re-gen types based on the spec changes (#75) (e95b00e)
  • re-generate types based on specifciation updates (#101) (c2aa431)
  • re-generate types based on specifciation updates (#105) (adec09b)
  • re-generate types based on specifciation updates (#108) (00199dc)
  • re-generate types based on specifciation updates (#114) (f1a380a)
  • re-generate types based on specifciation updates (#125) (95501b6)
  • re-generate types based on specifciation updates (#128) (852b2ab)
  • re-generate types based on specifciation updates (#140) (b769928)
  • re-generate types based on specifciation updates (#143) (946a803)
  • re-generate types based on specifciation updates (#147) (b568837)
  • re-generate types based on specifciation updates (#154) (5e9bfdd)
  • re-generate types based on specifciation updates (#156) (a917e79)
  • re-generate types based on specifciation updates (#162) (bb92e98)
  • re-generate types based on specifciation updates (#166) (42664dd)
  • re-generate types based on specifciation updates (#178) (6ee5f05)
  • re-generate types based on specifciation updates (#83) (ac66a29)
  • re-generate types based on specifciation updates (#88) (d3c2c6f)
  • re-generate types based on specifciation updates (#95) (64abd1d)
  • update repository (28cf911)

0.1.10 (2025-06-26)

Bug Fixes

  • re-generate types based on specifciation updates (#178) (6ee5f05)

0.1.9 (2025-06-03)

Bug Fixes

  • re-generate types based on specifciation updates (#147) (b568837)
  • re-generate types based on specifciation updates (#154) (5e9bfdd)
  • re-generate types based on specifciation updates (#156) (a917e79)
  • re-generate types based on specifciation updates (#162) (bb92e98)
  • re-generate types based on specifciation updates (#166) (42664dd)

0.1.8 (2025-04-04)

Bug Fixes

  • re-generate types based on specifciation updates (#140) (b769928)
  • re-generate types based on specifciation updates (#143) (946a803)

0.1.7 (2025-03-06)

Bug Fixes

  • re-generate types based on specifciation updates (#114) (f1a380a)
  • re-generate types based on specifciation updates (#125) (95501b6)
  • re-generate types based on specifciation updates (#128) (852b2ab)

0.1.6 (2025-01-20)

Bug Fixes

  • re-generate types based on specifciation updates (#108) (00199dc)

0.1.5 (2025-01-19)

Bug Fixes

  • re-generate types based on specifciation updates (#101) (c2aa431)
  • re-generate types based on specifciation updates (#105) (adec09b)

0.1.4 (2025-01-08)

Bug Fixes

  • re-generate types based on specifciation updates (#95) (64abd1d)

0.1.3 (2024-12-20)

Bug Fixes

  • re-generate types based on specifciation updates (#88) (d3c2c6f)

0.1.2 (2024-12-08)

Bug Fixes

  • re-generate types based on specifciation updates (#83) (ac66a29)

0.1.1 (2024-12-03)

Bug Fixes

  • re-gen types based on the spec changes (#75) (e95b00e)

0.1.0 (2024-12-02)

Features

Bug Fixes

  • add repository (#19) (91def9d)
  • another repository fix (72c215c)
  • bump specs/webdriver-bidi from 0575bf7 to 9eaa877 (#65) (d0ed8ef)
  • bump specs/webdriver-bidi from 05a283e to 62b8dfe (#16) (51dac71)
  • bump specs/webdriver-bidi from 0c366b0 to a46d71b (#30) (c926381)
  • bump specs/webdriver-bidi from 0fa2d99 to 712c17f (#36) (5e35acb)
  • bump specs/webdriver-bidi from 287e9c6 to 0575bf7 (#59) (20ec66a)
  • bump specs/webdriver-bidi from 62b8dfe to 0c366b0 (#25) (e6da243)
  • bump specs/webdriver-bidi from 712c17f to 287e9c6 (#43) (2f378f5)
  • bump specs/webdriver-bidi from a46d71b to 0fa2d99 (#33) (596a0ab)
  • document usage (#7) (d98a6ee)
  • update repository (28cf911)

0.0.9 (2024-09-03)

Bug Fixes

  • bump specs/webdriver-bidi from 0fa2d99 to 712c17f (#36) (5e35acb)
  • bump specs/webdriver-bidi from 712c17f to 287e9c6 (#43) (2f378f5)

0.0.8 (2024-07-10)

Bug Fixes

  • bump specs/webdriver-bidi from a46d71b to 0fa2d99 (#33) (596a0ab)

0.0.7 (2024-07-04)

Bug Fixes

  • bump specs/webdriver-bidi from 0c366b0 to a46d71b (#30) (c926381)

0.0.6 (2024-07-02)

Bug Fixes

  • bump specs/webdriver-bidi from 62b8dfe to 0c366b0 (#25) (e6da243)

0.0.5 (2024-06-28)

Bug Fixes

0.0.4 (2024-06-28)

Bug Fixes

0.0.3 (2024-06-28)

Bug Fixes

0.0.2 (2024-06-28)

Bug Fixes

  • bump specs/webdriver-bidi from 05a283e to 62b8dfe (#16) (51dac71)
  • document usage (#7) (d98a6ee)