WebDriver client library in Rust

webdriver_client on crates.io

crates.io

docs.rs

Source code and issues on GitHub: GitHub last commit

CI build on Travis CI: Build Status

Pull requests welcome.

Getting started

geckodriver (WebDriver proxy for Firefox) is fully supported as a WebDriver backend by the webdriver_client::firefox::GeckoDriver struct. This crate expects geckodriver to be on your path.

However HttpDriver will accept any WebDriver server's HTTP URL, so [ChromeDriver] for Chrome, Microsoft WebDriver for Edge, safaridriver for Apple Safari, and [OperaDriver] for Opera should all work if you start the server yourself.

On Linux

The script bin/download_geckodriver downloads the Linux x64 geckodriver binary release from the geckodriver Github releases page to bin/geckodriver.

This snippet will download geckodriver and place it on your current shell's path: sh bin/download_geckodriver export PATH=$PATH:$PWD/bin


Tests

cargo test runs a few tests. Integration tests currently require Firefox to be installed to /usr/lib/firefox.


This fork is based on equalsraf's excellent work from https://github.com/equalsraf/webdriver.