webdriver_client
on crates.io
Source code and issues on GitHub:
Pull requests welcome.
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.
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
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.