12.1.9 • Published 10 months ago

webdriver-manager v12.1.9

Weekly downloads
1,453,501
License
MIT
Repository
github
Last release
10 months ago

webdriver-manager CircleCI

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.

Note: Installing globally will not work with Protractor if you are trying to start a Selenium Standalone server with a "local" or "directConnect". It will not work for these since Protractor is looking files downloaded locally to the project.

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]
protractorprotractor-test-stepprotractor-test-stepsbrael-solarenginescheckit-hub-testscom.d3sd1.angular.multiplaformangular-multiplatformabp-zero-templates-gabp-zero-template-gmanualabp-zero-templat-gabp-zero-template-gaura-cucumber-steps-seednightwatch_test_dtp_dawidgalkacointervu@infinitebrahmanuniverse/nolb-webdsportotekagss-consumer-qa-automationsprinttek-templatesssprinttek-templatessxsprinttek-templatesx1sprinttektestsprinttektest1sprinttek-templatessprinttek-templates-1sprinttek-templates-cadssprinttek-templates-cardingsprinttek-templates-cardssprinttek-templates-jursprinttek-templates-namsprinttek-templates-nambriasprinttek-templates-redsprinttek-templates-yowsprinttek-templates0cardssprintteksprinttek-cardssprinttek-dev-templatessprinttek-dev-templates-cardssprinttek-dev-templates-redsprinttek-redtest-protractorkms-protractorzip-web-merchantapplicationjsgantt-improvedjsgantt-improved-aeskakuninweblayertopcoder-ui-testing-liblookelangchain-selenium-browseryanatrahydra-ionic-angular-baseline-appzm-zzzsyn-dev-toolstasteejestasfragame-chatdtihystsaukaccountancysaukaccountantsscribe-test-harnesssabium-frameworkfhir2evaluate-spaegy-sorobanghm_angularpc-automationprotra-help-angularprotractor-cj2protractor-flakeprotractor-flake-custom-ts-pathprotra-helpprotractor-selenium-types-fixprotractor-it-stepsprotractor8protractor-jm3opal-setupopendecide_protractor@tadkarlotus/jsgantt-improvedts-e2ets-protractor-helper3.0.0@ids-sandbox/npm-test@skiano/ng-tools@payoneer/express-checkout@ngxvoice/ngx-voicelistner@evilaliv3/protractor@holisticon/angularjs-commonabp-zero-carabp-zero-cardsabp-zero-laoxieabp-zero-manualabp-zero-template-cardsabp-zero-template_bojunabp-zero-template_bojun_jabp-zero-templatejj1abp-zero-templatep-cardsabp-zero-templates-cardsabp-zero-templates-localabp-zero-templates-red
13.0.2

10 months ago

13.0.1

10 months ago

12.1.9

10 months ago

12.1.8

3 years ago

12.1.7

4 years ago

12.1.6

4 years ago

12.1.5

4 years ago

12.1.4

5 years ago

12.1.3

5 years ago

12.1.2

5 years ago

13.0.0

5 years ago

12.1.1

5 years ago

13.0.0-beta

5 years ago

12.1.0

5 years ago

12.0.6

7 years ago

12.0.5

7 years ago

12.0.4

7 years ago

12.0.3

7 years ago

12.0.2

7 years ago

12.0.1

7 years ago

12.0.0

7 years ago

11.1.1

7 years ago

11.1.0

7 years ago

10.3.0

7 years ago

10.2.10

7 years ago

11.0.0

7 years ago

10.2.9

7 years ago

10.2.8

7 years ago

10.2.7

7 years ago

10.2.6

7 years ago

11.0.0-beta.0

7 years ago

10.2.5

7 years ago

10.2.4

7 years ago

10.2.3

7 years ago

10.2.2

7 years ago

10.2.1

7 years ago

10.2.0

7 years ago

10.1.0

7 years ago

10.0.4

7 years ago

10.0.3

7 years ago

10.0.2

8 years ago

10.0.1

8 years ago

10.0.0

8 years ago

9.0.0

8 years ago

8.0.0

8 years ago

7.0.1

8 years ago

7.0.0

8 years ago

6.0.2

8 years ago

6.0.1

8 years ago

6.0.0

8 years ago

5.3.0

8 years ago

5.2.0

9 years ago

5.1.0

9 years ago

5.0.0

9 years ago

4.0.0

9 years ago

3.0.0

9 years ago

2.0.0

9 years ago

1.0.1

9 years ago

1.0.0

9 years ago

0.0.8

9 years ago

0.0.7

9 years ago

0.0.6

9 years ago

0.0.5

9 years ago

0.0.4

9 years ago

0.0.3

9 years ago

0.0.2

9 years ago

0.0.1

9 years ago