#webdriver #browser #automation #protocol #w3c

webdriver

Library implementing the wire protocol for the W3C WebDriver specification

57 releases (breaking)

0.42.0 Nov 3, 2020
0.41.0 Jul 29, 2020
0.40.2 Sep 9, 2019
0.39.0 Jan 28, 2019
0.2.2 Jul 22, 2015

#61 in Testing

Download history 734/week @ 2020-08-11 415/week @ 2020-08-18 436/week @ 2020-08-25 320/week @ 2020-09-01 510/week @ 2020-09-08 434/week @ 2020-09-15 391/week @ 2020-09-22 469/week @ 2020-09-29 381/week @ 2020-10-06 391/week @ 2020-10-13 399/week @ 2020-10-20 361/week @ 2020-10-27 524/week @ 2020-11-03 562/week @ 2020-11-10 765/week @ 2020-11-17 824/week @ 2020-11-24

1,929 downloads per month
Used in 7 crates (6 directly)

MPL-2.0 license

165KB
4.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 tools-marionette@lists.mozilla.org (subscribe, archive).

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

Dependencies

~11MB
~236K SLoC