Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

grunt-selenium-server

Package Overview
Dependencies
Maintainers
2
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

grunt-selenium-server - npm Package Compare versions

Comparing version 0.1.2 to 0.1.3

1

Gruntfile.js

@@ -33,3 +33,4 @@ /*

grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.registerTask('test', ['start-selenium-server:test', 'stop-selenium-server:test']);
grunt.registerTask('default', ['jshint']);
};

2

package.json
{
"name": "grunt-selenium-server",
"version": "0.1.2",
"version": "0.1.3",
"description": "Grunt task to start/stop a local Selenium standalon server.",

@@ -5,0 +5,0 @@ "main": "Gruntfile.js",

@@ -110,4 +110,10 @@

function hasSeleniumStarted(data) {
if (data.toString().match(/Started SocketListener on .+:\d+/)) {
if (complete) return;
var str = data.toString();
if (str.match(/Selenium is already running/)) {
cb(new Error(str));
}
if (str.match(/Selenium Server is up and running/) || str.match(/Started SocketListener on .+:\d+/)) {
if (complete) {
return;
}
grunt.log.ok('Selenium server SocketListener started.');

@@ -125,3 +131,3 @@

childProcesses[target].stdout.on('data', hasSeleniumStarted);
// >= 2.43.0 outputs to stdout
// >= 2.43.0 outputs to stderr
childProcesses[target].stderr.on('data', hasSeleniumStarted);

@@ -149,3 +155,3 @@

var options = this.options({
downloadUrl: 'https://selenium-release.storage.googleapis.com/2.42/selenium-server-standalone-2.42.2.jar',
downloadUrl: 'https://selenium-release.storage.googleapis.com/2.46/selenium-server-standalone-2.46.0.jar',
downloadLocation: os.tmpdir(),

@@ -189,5 +195,5 @@ serverOptions: {},

grunt.log.ok('Sending kill signal to child process.');
childProcesses[target].kill('SIGTERM');
childProcesses[target].kill('SIGINT');
}
});
};
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc