Ensure Selenium binaries are installed before use.

This commit is contained in:
John Bintz 2015-07-14 09:55:29 -04:00
parent 5dbb0a284a
commit 52e35063f4
1 changed files with 9 additions and 3 deletions

View File

@ -74,8 +74,14 @@ app.use(proxy('localhost', {
}
}));
selenium.start({ spawnOptions: {}}, function() {
console.log("Persistent selenium listening on port 4443");
app.listen(4443);
selenium.install({ logger: function(msg) { console.log(msg); }}, function(err) {
selenium.start({ spawnOptions: {}}, function(err) {
if (err) {
console.log(err);
} else {
console.log("Persistent selenium listening on port 4443");
app.listen(4443);
}
});
});