https://github.com/imsobear/getwebdriver
download and unpacker webdriver from cnpm mirros
https://github.com/imsobear/getwebdriver
Last synced: 9 months ago
JSON representation
download and unpacker webdriver from cnpm mirros
- Host: GitHub
- URL: https://github.com/imsobear/getwebdriver
- Owner: imsobear
- License: mit
- Created: 2015-12-05T12:47:32.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2015-12-05T13:01:00.000Z (about 10 years ago)
- Last Synced: 2025-01-22T20:51:30.683Z (11 months ago)
- Language: JavaScript
- Size: 3.91 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# getWebDriver [](https://travis-ci.org/imsobear/getWebDriver) [](https://coveralls.io/r/imsobear/getWebDriver?branch=master)
> download and unpacker webDriver from cnpm mirros
## Install
```bash
npm install --save get-webdriver
```
## Usage
```javascript
var getWebDriver = require('get-webdriver');
getWebDriver.run({
directory: './drivers',
version: '2.20',
browser: 'chrome'
}).then(function(driverPath) {
console.log('driverPath: %s', driverPath);
});
```
## API
### .run(options)
download and unpacker webDriver.
#### options
- Type: object
#### options.browser
- Type: String
- Values: chrome, opera
#### options.platform
- Type: String
- Values: linux, darwin, win32
- Default: `process.platform`
#### options.directory
- Type: String
The directory for save drivers
#### options.versions
- Type: String
The webDriver version, refer to [chromeDriver versions](http://npm.taobao.org/mirrors/chromedriver/), [operaDriver versions](http://npm.taobao.org/mirrors/operadriver/)
## Test
```bash
npm test
```
## License
MIT © 2015 sobear