installs a `start-selenium` command line to start a standalone selenium server with chrome-driver

npm install selenium-standalone
44 downloads in the last day
222 downloads in the last week
1 496 downloads in the last month

selenium-standalone Dependency Status devDependency Status

Intalls a start-selenium command line starting a selenium standalone server along with the chromedriver.

Currently installs selenium 2.41.0 and chrome driver 2.9.

npm install --production selenium-standalone@latest -g

Any arguments passed to start-selenium are then passed to java -jar ...jar args.

So you can start-selenium -debug to launch standalone selenium server in debug mode.

Running headlessly

On linux,

To run headlessly, you can use xvfb:

xvfb-run --server-args="-screen 0, 1366x768x24" start-selenium

Available browsers

By default, google chrome, firefox and phantomjs are available if installed on the sytem.

Example: launch

Using a selenium driver like wd:

npm install wd -g
wd shell
(wd): browser = wd.remote(); browser.init(function(){browser.get('')})

Programmatic use

var selenium = require('selenium-standalone');

var spawnOptions = { stdio: 'pipe' };

// options to pass to `java -jar selenium-server-standalone-X.XX.X.jar`
var seleniumArgs = [

var server = selenium(spawnOptions, seleniumArgs);
// or, var server = selenium();
// returns ChildProcess instance

// spawnOptions defaults to `{ stdio: 'pipe' }`
// seleniumArgs defaults to `[]`

server.stdout.on('data', function(output) {

selenium-standalone versions maps selenium versions.

npm loves you