findFilms/node_modules/webdriver-bidi-protocol
2025-10-05 22:20:49 +03:00
..
.github Initial commit: Torrent search and download application 2025-10-05 22:20:49 +03:00
docs Initial commit: Torrent search and download application 2025-10-05 22:20:49 +03:00
out Initial commit: Torrent search and download application 2025-10-05 22:20:49 +03:00
src Initial commit: Torrent search and download application 2025-10-05 22:20:49 +03:00
test-d Initial commit: Torrent search and download application 2025-10-05 22:20:49 +03:00
tools Initial commit: Torrent search and download application 2025-10-05 22:20:49 +03:00
.gitmodules Initial commit: Torrent search and download application 2025-10-05 22:20:49 +03:00
.nvmrc Initial commit: Torrent search and download application 2025-10-05 22:20:49 +03:00
.prettierrc.cjs Initial commit: Torrent search and download application 2025-10-05 22:20:49 +03:00
.release-please-manifest.json Initial commit: Torrent search and download application 2025-10-05 22:20:49 +03:00
CHANGELOG.md Initial commit: Torrent search and download application 2025-10-05 22:20:49 +03:00
LICENSE Initial commit: Torrent search and download application 2025-10-05 22:20:49 +03:00
package.json Initial commit: Torrent search and download application 2025-10-05 22:20:49 +03:00
README.md Initial commit: Torrent search and download application 2025-10-05 22:20:49 +03:00
release-please-config.json Initial commit: Torrent search and download application 2025-10-05 22:20:49 +03:00
tsconfig.json Initial commit: Torrent search and download application 2025-10-05 22:20:49 +03:00

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.