Thanks to https://github.com/Obvious/phantomjs for the process how to download / handle varying binaries using NPM.
Building and installing
npm install webdrvr
What this is really doing is just grabbing a particular "blessed" (by this module) version of Selenium, Chromedriver, IEDriver and PhantomJS. As new versions are released and vetted, this module will be updated accordingly.
bin/webdrvr [selenium arguments] // see "bin/webdrvr -h"
Running via node (using
var childProcess = ;// passing information about current environmentvar webdrvr = ;var childArgs = webdrvrargs;childProcess;
var remote = ;var webdrvr = ;// further options:var server = webdrvrseleniumpathargs: webdrvrargs;serverstart;// stopping the server// server.stop();
The NPM package version tracks the version of Selenium that will be installed, with an additional build number that is used for revisions of the installer.
As such 2.33.0-0 and 2.33.0-1 will both install Selenium 2.33.0 but the latter has newer changes to the installer.