# webdriver-manager-replacement

> webdriver-manager-replacement

Latest version **2.0.2** (published 2019-07-27) · MIT license · 0 weekly downloads

## Install

```sh
npm install webdriver-manager-replacement
pnpm add webdriver-manager-replacement
yarn add webdriver-manager-replacement
bun add webdriver-manager-replacement
```

Provides the commands `wdm`, `webdriver-manager`, `webdriver-manager-replacement`.

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.0.2 |
| Published | 2019-07-27 |
| First published | 2018-07-10 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 7 |
| Unpacked size | 256.4 KB |
| Known vulnerabilities | 0 (+16 in 4 direct dependencies) |
| Install scripts | no |
| GitHub stars | 9 |
| Author | Craig Nishina |
| Maintainers | cnishina |
| Keywords | automation, browser, browsers, browser test, browser testing, chromedriver, geckodriver, iedriver, selenium, selenium-webdriver, test, testing, webdriver, webdriverjs |

## Links

- npm: https://www.npmjs.com/package/webdriver-manager-replacement
- Repository: https://github.com/cnishina/webdriver-manager-replacement
- Homepage: https://github.com/cnishina/webdriver-manager-replacement#readme
- Issues: https://github.com/cnishina/webdriver-manager-replacement/issues
- npm.io page: https://npm.io/package/webdriver-manager-replacement

## Dependencies (7)

- [tar](https://npm.io/package/tar.md) ^4.4.8
- [yargs](https://npm.io/package/yargs.md) ^12.0.5
- [semver](https://npm.io/package/semver.md) ^5.6.0
- [xml2js](https://npm.io/package/xml2js.md) ^0.4.19
- [adm-zip](https://npm.io/package/adm-zip.md) ^0.4.13
- [request](https://npm.io/package/request.md) ^2.88.0
- [loglevel](https://npm.io/package/loglevel.md) ^1.6.1

## Alternatives

- [duck](https://npm.io/package/duck.md) — 4.2M weekly downloads
- [ava](https://npm.io/package/ava.md) — 560.2K weekly downloads
- [storybook-addon-module-mock](https://npm.io/package/storybook-addon-module-mock.md) — 71.7K weekly downloads
- [vest](https://npm.io/package/vest.md) — 50.1K weekly downloads
- [@ethereum-waffle/mock-contract](https://npm.io/package/@ethereum-waffle/mock-contract.md) — 40.0K weekly downloads

## Recent versions

- 2.0.2 (latest) — 2019-07-27
- 2.0.1 — 2019-06-28
- 2.0.0 — 2019-06-06
- 1.1.3 — 2018-12-23
- 1.1.2 — 2018-12-22
- 1.1.1 — 2018-12-11
- 1.1.0 — 2018-09-24
- 1.0.1 — 2018-09-21
- 1.0.0 — 2018-09-21
- 0.5.3 — 2018-09-14
- 0.5.2 — 2018-09-14
- 0.5.1 — 2018-08-22
- 0.5.0 — 2018-08-22
- 0.4.1 — 2018-08-18
- 0.4.0 — 2018-08-18
- … 12 more at https://npm.io/package/webdriver-manager-replacement/versions

## README

# webdriver-manager [![CircleCI](https://circleci.com/gh/angular/webdriver-manager/tree/replacement.svg?style=svg)](https://circleci.com/gh/angular/webdriver-manager/tree/replacement)

* [Use as a dependency](#use-as-a-dependency)
* [Use as a command line interface](#use-as-a-command-line-interface)
* [The command line interface help commands](#the-command-line-interface-help-commands)
* [Environment variables](docs/env_vars.md)


## Use as a dependency

To install this as a dependency: `npm install -D webdriver-manager`. The
following is an example running webdriver-manager as a dependency.
The test downloads the providers and starts the selenium server standalone as
detached. After the test, it will shutdown the selenium server standalone.


```
import {
  Options,
  setLogLevel,
  shutdown,
  start,
  update,
} from 'webdriver-manager';

const options: Options = {
  browserDrivers: [{
    name: 'chromedriver'     // For browser drivers, we just need to use a valid
                             // browser driver name. Other possible values
                             // include 'geckodriver' and 'iedriver'.
  }],
  server: {
    name: 'selenium',
    runAsNode: true,          // If we want to run as a node. By default
                              // running as detached will set this to true.
    runAsDetach: true         // To run this in detached. This returns the
                              // process back to the parent process.
  }
};
setLogLevel('info');          // Required if we webdriver-manager to log to
                              // console. Not setting this will hide the logs.

describe('some web test', () => {
  beforeAll(async () => {
    await update(options);
    await start(options);
  });

  it('should run some web test', async () => {
    // Your async / await web test with some framework.
  });

  afterAll(async () => {
    await shutdown(options);  // Makes the web request to shutdown the server.
                              // If we do not call shutdown, the java command
                              // will still be running the server on port 4444.
  });
});

```

## Use as a command line interface

```
npm i -g webdriver-manager

webdriver-manager update      // Downloads the latest binaries.
webdriver-manager start       // Starts the selenium server standalone.
```

Notes:
* Installing globally will not work with Protractor if you are trying to
start a Selenium Standalone server with a "local" or "directConnect", because
Protractor installs its own version of webdriver-manager as a dependency.
* Right now there is an issue with downloading the latest ChromeDriver.
It might not be compatible with the current version of Chrome.
The latest available version of ChromeDriver is the *v74.x.x.x*
but this one only works with Chrome *v74.x.x.x* which is in Beta right now.
So, if you have installed the latest stable version of Chrome (*v73.x.x.x*)
you should pin that ChromeDriver version to be
downloaded: `webdriver-manager update --versions.chrome=73.0.3683.68`.
To find out the latest version, check out http://chromedriver.chromium.org/ .

## The command line interface help commands

To get a list of commands for webdriver-manager, use the help flag.

```
webdriver-manager --help
webdriver-manager [command]

Commands:
  webdriver-manager clean     Removes downloaded files from the out_dir.
  webdriver-manager shutdown  Shutdown a local selenium server with GET request
  webdriver-manager start     Start up the selenium server.
  webdriver-manager status    List the current available binaries.
  webdriver-manager update    Install or update selected binaries.

Options:
  --version  Show version number                                       [boolean]
  --help     Show help                                                 [boolean]
```

To get a list of options that can be passed to the `webdriver-manager update`
command, use the help flag.

```
webdriver-manager update --help
webdriver-manager update

Install or update selected binaries.

Options:
  --version              Show version number                           [boolean]
  --help                 Show help                                     [boolean]
  --out_dir              Location of output.                            [string]
  --chrome               Install or update chromedriver.
                                                       [boolean] [default: true]
  --gecko                Install or update geckodriver.[boolean] [default: true]
  --github_token         Use a GitHub token to prevent rate limit issues.
                                                                        [string]
  --iedriver             Install or update ie driver. [boolean] [default: false]
  --ignore_ssl           Ignore SSL certificates.                      [boolean]
  --log_level            The log level of this CLI.   [string] [default: "info"]
  --proxy                Use a proxy server to download files.          [string]
  --standalone           Install or update selenium server standalone.
                                                       [boolean] [default: true]
  --versions.chrome      The chromedriver version.                      [string]
  --versions.gecko       The geckodriver version.                       [string]
  --versions.ie          The ie driver version.                         [string]
  --versions.standalone  The selenium server standalone version.        [string]
```

---
_Source: https://npm.io/package/webdriver-manager-replacement · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
