get-webdriver

    0.0.1 • Public • Published

    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

    Keywords

    none

    Install

    npm i get-webdriver

    DownloadsWeekly Downloads

    1

    Version

    0.0.1

    License

    MIT

    Last publish

    Collaborators

    • sobear