https://github.com/groupon/selenium-download
allow downloading of latest selenium standalone server and chromedriver
https://github.com/groupon/selenium-download
chromedriver selenium webdriver
Last synced: about 1 year ago
JSON representation
allow downloading of latest selenium standalone server and chromedriver
- Host: GitHub
- URL: https://github.com/groupon/selenium-download
- Owner: groupon
- License: bsd-3-clause
- Created: 2014-03-04T17:00:52.000Z (about 12 years ago)
- Default Branch: main
- Last Pushed: 2023-01-07T23:43:33.000Z (over 3 years ago)
- Last Synced: 2024-04-14T12:28:59.687Z (about 2 years ago)
- Topics: chromedriver, selenium, webdriver
- Language: JavaScript
- Size: 549 KB
- Stars: 29
- Watchers: 12
- Forks: 25
- Open Issues: 13
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://github.com/groupon/selenium-download/issues)


# 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](https://github.com/groupon-testium/selenium-download/releases).
## example
```js
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.