0.0.1 • Published 8 years ago

get-webdriver v0.0.1

Weekly downloads
-
License
MIT
Repository
-
Last release
8 years ago

getWebDriver Build Status Coverage Status

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