Skip to content

Installs Chrome and Gecko drivers that match with the specified browser versions

License

Notifications You must be signed in to change notification settings

bgedik/browser-driver-installer

Repository files navigation

Build Status

browser-driver-installer

Installs Chrome and Gecko drivers that match with the specified browser versions. It uses the chromedriver and geckodriver NPM packages to download the drivers.

Usage:

Post Install Script: If your environment has the BROWSER_DRIVER_INSTALLER_CHROME_VERSION, BROWSER_DRIVER_INSTALLER_CHROMEDRIVER_PATH, BROWSER_DRIVER_INSTALLER_FIREFOX_VERSION, BROWSER_DRIVER_INSTALLER_GECKODRIVER_PATH variables defined, a post-install script will download the ChromeDriver and GeckoDriver executables to the specified paths automatically.

As a module:

const driverInstaller = require('browser-driver-installer').driverInstaller;
driverInstaller(CHROME_VERSION, CHROMEDRIVER_TARGET_PATH, FIREFOX_VERSION, GECKODRIVER_TARGET_PATH);

CLI Usage:

Usage: index [options]

  Options:

    --chrome-version [chromeVersion]                        Chrome browser major version string e.g. 65
    --chrome-driver-target-path [chromeDriverTargetPath]    Path to install Chrome driver executable
    --firefox-version [firefoxVersion]                      Firefox browser major version string e.g. 57
    --firefox-driver-target-path [firefoxDriverTargetPath]  Path to install Firefox driver(geckoDriver) executable
    -h, --help                                              output usage information

LICENSE

Apache 2.0

About

Installs Chrome and Gecko drivers that match with the specified browser versions

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 91.8%
  • Shell 8.2%