UNPKG

endpointjs

Version:

Endpoint.js enables modules within a web application to discover and use each other, whether that be on the same web page, other browser windows and tabs, iframes, servers and web workers in a reactive way by providing robust discovery, execution and stre

46 lines (40 loc) 1.38 kB
var selenium = require('selenium-standalone'); module.exports = function(grunt) { var settings = { // check for more recent versions of selenium here: // https://selenium-release.storage.googleapis.com/index.html version: '2.50.1', baseURL: 'https://selenium-release.storage.googleapis.com', drivers: { chrome: { // check for more recent versions of chrome driver here: // https://chromedriver.storage.googleapis.com/index.html version: '2.21', arch: process.arch, baseURL: 'https://chromedriver.storage.googleapis.com' }, ie: false }, logger: function(message) { console.log('SELENIUM INSTALL: ' + message); } }; // Install Selenium grunt.registerTask('selenium-install', function() { var done = this.async(); selenium.install(settings, done); }); // Start Selenium grunt.registerTask('selenium-start', function() { var done = this.async(); selenium.start( settings, function(err, chld) { process.on('exit', function() { chld.kill(); }); done(err); } ); }); };