#webdriver #browser #automation #protocol #w3c

webdriver

Library implementing the wire protocol for the W3C WebDriver specification

60 releases (breaking)

0.44.0 Sep 16, 2021
0.43.1 Apr 9, 2021
0.43.0 Jan 14, 2021
0.42.0 Nov 3, 2020
0.2.2 Jul 22, 2015

#254 in Network programming

Download history 4968/week @ 2021-08-10 4981/week @ 2021-08-17 5749/week @ 2021-08-24 4139/week @ 2021-08-31 6634/week @ 2021-09-07 5405/week @ 2021-09-14 5014/week @ 2021-09-21 5374/week @ 2021-09-28 4150/week @ 2021-10-05 5434/week @ 2021-10-12 6345/week @ 2021-10-19 4946/week @ 2021-10-26 5464/week @ 2021-11-02 6508/week @ 2021-11-09 7639/week @ 2021-11-16 5353/week @ 2021-11-23

25,561 downloads per month
Used in 14 crates (8 directly)

MPL-2.0 license

185KB
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

~5–8MB
~182K SLoC