Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

selenium-download

groupon9.1kBSD-3-Clause2.0.16

allow downloading of latest selenium standalone server and chromedriver

readme

nlm-github nlm-node nlm-version

selenium-download

This module allows you to download the latest versions of the selenium standalone server and the chromedriver.

Keep up to date with changes by checking the releases.

example

var selenium = require('selenium-download');

selenium.ensure(__dirname + '/bin', function (error) {
  if (error) console.error(error.stack);
  process.exit(0);
});

api

selenium.ensure

ensure ensures that the selenium.jar and chromedriver files are in the path provided.

If they are not, the latest versions of both are downloaded into that path.

selenium.update

update forces the selenium.jar and chromedriver files to be the latest available versions. Pulls from temp directory if available.

selenium.forceUpdate

forceUpdate forces the selenium.jar and chromedriver files to be the latest available versions. Clears temp directory before checking.

changelog

v2.0.16 (2021-03-26)

🏡 Internal

2.0.15

  • fix download Key error - @dbushong #52
    • 4783124 chore: npm audit fix --force
    • 5a61e29 style: eslint --fix
    • 8b850a6 fix: only download latest version with server
    • b70dce7 chore: try openjdk for java test

2.0.14

  • Do not download alpha versions - @jkrems #50
    • d4edd83 fix: Do not download alpha versions
    • 447e3dd chore: Fix travis setup

2.0.13

2.0.12

  • Stop using magical offsets to determine latest selenium - @jkrems #43
    • 21dbde7 fix: Stop using magical offsets to determine latest selenium - see: #40, 39

2.0.11

2.0.10

  • fix: The XML source from where we were getting the version changed - @jac1013 #38
    • e68e819 fix: The XML source from where we were getting the version changed
    • 2716011 fix: trying to add a greater java version through .travis.yml to make tests in CI pass.

2.0.9

2.0.8

2.0.7

  • Use https to download binaries - @jkrems #32
    • 1957ca7 fix: Use https to download binaries

2.0.6

  • Fail cleanly when the chromedriver download 404s - @jkrems #31
    • f1a5d73 fix: Fail cleanly when the chromedriver download 404s

2.0.5

  • Fix failing OSX chromedriver download due to 2.23 dropped support for mac 32 bit - @brettjonesdev #30
    • f84195e fix: chromedriver version 2.23 no longer supports mac 32 bit

2.0.4

  • Support for node v6 and shiny JavaScript - @jkrems #27
    • af2e601 chore: Port to JavaScript
    • 861da47 refactor: drop download, runs on node 6 - see: #19
    • 6ffd489 test: Set higher timeout for slow connections - see: #24

2.0.3

  • 803311c fix: chromedriver download on Windows unzips an .exe file

2.0.2

  • Updated selenium and chromedriver - @gabehayes #21
    • fc359f2 chore: Update selenium version to 2.53.0
    • 003876d chore: Update chromedriver version to 2.22

2.0.1

  • fix: More reliable (and correct) download - @jkrems #17
    • 7599b95 fix: More reliable (and correct) download
  • Apply latest nlm generator - @i-tier-bot #18
    • 1e32749 chore: Apply latest nlm generator
    • 0c616b6 test: Convert to proper mocha test
    • f16af5c chore: Set author to Groupon
    • 445ce55 style: Use assertive over assert