#webdriver #browser #automation #protocol #w3c

webdriver

Library implementing the wire protocol for the W3C WebDriver specification

49 releases (breaking)

0.36.0 Jun 15, 2018
0.35.0 Mar 12, 2018
0.33.0 Dec 8, 2017
0.32.0 Oct 31, 2017
0.2.2 Jul 22, 2015

#8 in Testing

Download history 229/week @ 2018-09-18 262/week @ 2018-09-25 512/week @ 2018-10-02 439/week @ 2018-10-09 1126/week @ 2018-10-16 428/week @ 2018-10-23 467/week @ 2018-10-30 950/week @ 2018-11-06 597/week @ 2018-11-13 531/week @ 2018-11-20 465/week @ 2018-11-27 1261/week @ 2018-12-04 525/week @ 2018-12-11

1,396 downloads per month
Used in 6 crates (5 directly)

MPL-2.0 license

149KB
4K 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 an IRC channel to talk about using and developing webdriver in #ateam on irc.mozilla.org.

Dependencies

~14MB
~316K SLoC