Proxy for using W3C WebDriver-compatible clients to interact with Gecko-based browsers.
This program provides the HTTP API described by the WebDriver protocol to communicate with Gecko browsers, such as Firefox. It translates calls into the Marionette automation protocol by acting as a proxy between the local- and remote ends.
geckodriver is written in Rust and you need the Rust toolchain to compile it.
To compile the project for release, ensure you do an optimised build:
% cargo build --no-default-features --release
If you want to build a debug binary:
% cargo build --no-default-features
The --no-default-features
argument
is required to compile on Windows
due to the way dependencies need to be compiled.
Usage steps are documented on MDN, but the gist of it is this:
% geckodriver -b /usr/bin/firefox
Or if you’re on Mac:
% geckodriver -b /Applications/FirefoxNightly.app/Contents/MacOS/firefox-bin