16 releases

0.3.2 Feb 7, 2021
0.3.1 Feb 3, 2021
0.3.0 Jan 25, 2021
0.2.0 Jan 23, 2021
0.1.1 Jan 23, 2021

#7 in #webdriver

Download history 2/week @ 2024-04-14 13/week @ 2024-04-21 1/week @ 2024-04-28 2/week @ 2024-05-12 4/week @ 2024-05-26 6/week @ 2024-06-02 9/week @ 2024-06-09 1/week @ 2024-06-16 3/week @ 2024-06-23 8/week @ 2024-06-30 90/week @ 2024-07-28

98 downloads per month
Used in deadpool-fantoccini

MIT license

27KB
545 lines

webdriver-install

Rust Sponsor count Crates.io docs.rs MSRV

Fast and simple webdriver installation

Usage

As a CLI

# Install into $HOME/.webdrivers
webdriver-install --install geckodriver

# Or into a specified directory
webdriver-install --install geckodriver --dir /tmp/webdrivers

# Check that it installed correctly:
/tmp/webdrivers/geckodriver --help

As a Rust library

use webdriver_install::Driver;
use std::path::PathBuf;

fn main() {
    // Install into $HOME/.webdrivers
    Driver::Chrome.install();

    // Install into specified path
    Driver::Chrome.install_into(PathBuf::from("/tmp/webdrivers"));
}

Implementation state

Driver installation support:

  • chromedriver
  • geckodriver
  • edgedriver
  • iedriver
  • operadriver
  • safaridriver Safaridriver comes pre-installed on all MacOS systems, but we can at least provide the binary location.

Usability:

  • ✅ README instructions
  • ✅ Stable-ish library API
  • ⬜ Command line interface
  • ⬜ Updating of installed drivers
  • ⬜ Removal of installed drivers
  • ✅ Published on crates.io
  • ✅ Published library docs
  • ✅ Linux support
  • ✅ Windows support
  • ✅ MacOS support
  • ⬜ WSL support
  • ⬜ Pre-built binaries

Inspired by:

Dependencies

~12–27MB
~432K SLoC