#remote-control #browser #w3c #protocols #automation #user-agent

webdriver

Library implementing the wire protocol for the W3C WebDriver specification

68 releases (breaking)

0.51.0 Aug 5, 2024
0.50.0 Jan 3, 2024
0.49.0 Sep 20, 2023
0.48.0 Apr 3, 2023
0.2.2 Jul 22, 2015

#78 in HTTP server

Download history 25603/week @ 2024-08-21 25711/week @ 2024-08-28 29252/week @ 2024-09-04 21935/week @ 2024-09-11 24460/week @ 2024-09-18 26052/week @ 2024-09-25 27985/week @ 2024-10-02 25894/week @ 2024-10-09 32081/week @ 2024-10-16 32851/week @ 2024-10-23 28301/week @ 2024-10-30 33431/week @ 2024-11-06 35208/week @ 2024-11-13 27110/week @ 2024-11-20 20929/week @ 2024-11-27 23352/week @ 2024-12-04

113,069 downloads per month
Used in 57 crates (8 directly)

MPL-2.0 license

210KB
5.5K SLoC

webdriver library

The webdriver crate is a library implementation of the wire protocol for the W3C WebDriver standard written in Rust. WebDriver is a remote control interface that enables introspection and control of user agents. It provides a platform- and language-neutral wire protocol as a way for out-of-process programs to remotely instruct the behaviour of web browsers.

The webdriver library provides the formal types, error codes, type and bounds checks, and JSON marshaling conventions for correctly parsing and emitting the WebDriver protocol. It also provides an HTTP server where endpoints are mapped to the different WebDriver commands.

As of right now, this is an implementation for the server side of the WebDriver API in Rust, not the client side.

Building

The library is built using the usual Rust conventions:

% cargo build

To run the tests:

% cargo test

Contact

The mailing list for webdriver discussion is https://groups.google.com/a/mozilla.org/g/dev-webdriver.

There is also an Element channel to talk about using and developing webdriver on #webdriver:mozilla.org <https://chat.mozilla.org/#/room/#webdriver:mozilla.org>__

Dependencies

~8–18MB
~180K SLoC