npm.io
1.1.12 • Published 10 years ago

selenium-launcher

Licence
Apache-2.0
Version
1.1.12
Deps
3
Vulns
2
Weekly
0
Stars
27

selenium-launcher Build Status

A library to download and launch the Selenium Server.

var seleniumLauncher = require('selenium-launcher')
seleniumLauncher(function(er, selenium) {
  // selenium is running
  // selenium.host / selenium.port are available
  // selenium is a child process, so you can do selenium.kill()
})

Forcing selenium server version

You can override the selenium server version used by the launcer via the environment variable

SELENIUM_VERSION=2.32.0:c94e6d5392b687d3a141a35f5a489f50f01bef6a node app.js

You'll have to supply a valid sha for the version.

A list of selenium-server jar's and their sha can be found on https://code.google.com/p/selenium/downloads/list

Testing

npm test