code: function runSeleniumInBackground (done) {
  	console.log([moment().format('HH:mm:ss:SSS')] + ' kne: starting selenium server in background...');
  	selenium_proc = child_process.spawn('java',
  		[
  			'-jar', selenium.path,
  		],
  		{
  			stdio: ['ignore', 'pipe', 'pipe'],
  		});
  	var running = false;
  
  	selenium_proc.stderr.on('data', function (buffer) {
  		var line = buffer.toString();
  		if (line.search(/Selenium Server is up and running/g) !== -1) {
  			running = true;
  			done();
  		}
  	});
  
  	selenium_proc.on('close', function (code) {
  		if (!running) {
  			done(new Error('Selenium exited with error code ' + code));
  		}
  	});
  }
docs: /*
  On some machines, selenium fails with a timeout error when nightwatch tries to connect due to a
  deadlock situation. The following is a temporary workaround that starts selenium without a pipe
  from stdin until this issue is fixed in nightwatch:
  https://github.com/nightwatchjs/nightwatch/issues/470