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:
Last updated 2 months ago by google-wombot .
Apache-2.0 · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install webdriver-bidi-protocol 
SYNC missed versions from official npm registry.

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.

Current Tags

  • 0.4.1                                ...           latest (2 months ago)

42 Versions

  • 0.4.1                                ...           2 months ago
  • 0.4.0                                ...           3 months ago
  • 0.3.11                                ...           3 months ago
  • 0.3.10                                ...           4 months ago
  • 0.3.9                                ...           5 months ago
  • 0.3.8                                ...           6 months ago
  • 0.3.7                                ...           6 months ago
  • 0.3.6                                ...           7 months ago
  • 0.3.5                                ...           7 months ago
  • 0.3.4                                ...           7 months ago
  • 0.3.3                                ...           7 months ago
  • 0.3.2                                ...           7 months ago
  • 0.3.1                                ...           7 months ago
  • 0.3.0                                ...           7 months ago
  • 0.2.11                                ...           7 months ago
  • 0.2.10                                ...           7 months ago
  • 0.2.9                                ...           7 months ago
  • 0.2.8                                ...           7 months ago
  • 0.2.7                                ...           7 months ago
  • 0.2.6                                ...           8 months ago
  • 0.2.5                                ...           8 months ago
  • 0.2.4                                ...           8 months ago
  • 0.2.3                                ...           8 months ago
  • 0.2.2                                ...           9 months ago
  • 0.2.1                                ...           9 months ago
  • 0.2.0                                ...           10 months ago
  • 0.1.9                                ...           10 months ago
  • 0.1.8                                ...           a year ago
  • 0.1.7                                ...           a year ago
  • 0.1.6                                ...           a year ago
  • 0.1.5                                ...           a year ago
  • 0.1.4                                ...           a year ago
  • 0.1.3                                ...           a year ago
  • 0.1.2                                ...           a year ago
  • 0.1.1                                ...           a year ago
  • 0.1.0                                ...           a year ago
  • 0.0.8                                ...           2 years ago
  • 0.0.7                                ...           2 years ago
  • 0.0.6                                ...           2 years ago
  • 0.0.5                                ...           2 years ago
  • 0.0.4                                ...           2 years ago
  • 0.0.1                                ...           2 years ago
Maintainers (2)
Downloads
Today 0
This Week 0
This Month 37
Last Day 0
Last Week 37
Last Month 5
Dependencies (0)
None
Dev Dependencies (6)
Dependents (1)

Copyright 2013 - present © cnpmjs.org | Home |