get-webdriver
v0.0.1
Published
download and unpacker webdriver from cnpm mirros
Downloads
1
Readme
getWebDriver
download and unpacker webDriver from cnpm mirros
Install
npm install --save get-webdriver
Usage
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, operaDriver versions
Test
npm test
License
MIT © 2015 sobear