tree: efb5667d59fac94d237971ed412b64e396548f52 [path history] [tgz]
  1. private/
  2. src/
  3. tests/
  4. BUILD.bazel
  5. Cargo.aarch64-pc-windows-msvc.toml
  6. Cargo.Bazel.lock
  7. Cargo.lock
  8. Cargo.toml
  9. CHANGELOG.md
  10. defs.bzl
  11. README.md
rust/README.md

Selenium Manager

Selenium Manager is a command-line tool implemented in Rust that provides automated driver and browser management for Selenium. For details about its features, visit the Selenium Manager documentation page.

Rust installation

Selenium Manager has been implemented as a CLI (Command-Line Interface) tool using Rust. Therefore, to run it from the source code, you need to install Rust and Cargo. On Linux and macOS systems, this is done as follows:

curl https://sh.rustup.rs -sSf | sh

Alternatively, you can build it using Bazel by executing bazel build //rust:selenium-manager from the top-level directory of the Selenium repo (the same one where the WORKSPACE file is).

Usage

Selenium Manager can be executed using Cargo as follows:

$ cargo run -- --help

For instance, the command required to manage chromedriver is the following:

$ cargo run -- --browser chrome

Alternatively, you can replace cargo run with bazel run //rust:selenium-manager, for example bazel run //rust:selenium-manager -- --browser chrome --debug

Windows ARM

There are issues when building on Windows ARM64. To workaround, use cargo with --config Cargo.aarch64-pc-windows-msvc.toml flag.