node package manager

geckodriver

node-geckodriver Build Status: Linux Build status: Windows

Downloader for github.com/mozilla/geckodriver/releases

This puts geckodriver or geckodriver.exe into root of this module.

Install

npm install geckodriver

Usage

There are several ways to use this module:

Use the provided geckodriver from bin directory.

bin/geckodriver [args]

Use it by requiring:

require('geckodriver');

Use it by setting WebDriver capabilities:

profile.setPreference('marionette', true);
// Add log level if needed:
// profile.setPreference('marionette.logging', 'TRACE');

Setting a CDN URL for binary download

To set an alternate CDN location for geckodriver binaries, set the GECKODRIVER_CDNURL like this:

GECKODRIVER_CDNURL=https://INTERNAL_CDN/geckodriver/download

Binaries on your CDN should be located in a subdirectory of the above base URL. For example, /vxx.xx.xx/*.tar.gz should be located under /geckodriver/download above.

Related Projects

Versions

  • [npm module version] - [geckodriver version]
  • 1.8.x - geckodriver 0.18.0
  • 1.7.x - geckodriver 0.17.0
  • 1.6.x - geckodriver 0.16.1
  • 1.5.x - geckodriver 0.15.0
  • 1.4.x - geckodriver 0.14.0
  • 1.3.x - geckodriver 0.13.0
  • 1.2.x - geckodriver 0.11.1
  • 1.1.x - geckodriver 0.10

Changelog

  • 1.8.0 - updated to geckodriver 0.18.0
  • 1.7.1 - 'GECKODRIVER_CDNURL' support added.
  • 1.7.0 - updated to geckodriver 0.17.0 32-bit linux support added.
  • 1.6.1 - updated to geckodriver 0.16.1
  • 1.6.0 - updated to geckodriver 0.16.0. 32-bit linux support removed.
  • 1.5.0 - updated to geckodriver 0.15.0.
  • 1.4.0 - updated to geckodriver 0.14.0.
  • 1.3.0 - updated to geckodriver 0.13.0.
  • 1.2.1 - added support for Linux 32-bit.
  • 1.2.0 - updated to geckodriver 0.11.1.
  • 1.1.3 - adds Windows support, fixes Windows tests.
  • 1.1.2 - fixed require by pointing package.json main property to the lib file.
  • 1.1.0 - programmatic usage, added bin support.
  • 1.0.0 - init release