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

selenium-standalone

Package Overview
Dependencies
Maintainers
10
Versions
169
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

selenium-standalone - npm Package Compare versions

Comparing version 8.2.3 to 8.2.4

6

docs/API.md

@@ -29,3 +29,3 @@ <!-- START doctoc generated TOC please keep comment here to allow auto update -->

// https://selenium-release.storage.googleapis.com/index.html
version: '3.141.59',
version: process.env.SELENIUM_VERSION || '4.4.0',
baseURL: 'https://selenium-release.storage.googleapis.com',

@@ -124,1 +124,5 @@ drivers: {

```
## Set `selenium-standalone` Version as NodeJS environment parameter
You can set any version by `process.env.SELENIUM_VERSION=3.141.59` before starting selenium-standalone. Default values are here: [lib/default-config.js](../lib/default-config.js)

2

lib/default-config.js
module.exports = () => {
const config = {
baseURL: 'https://github.com/SeleniumHQ/selenium/releases/download',
version: '4.0.0',
version: process.env.SELENIUM_VERSION || '4.4.0',
drivers: {

@@ -6,0 +6,0 @@ chrome: {

@@ -51,5 +51,5 @@ const fs = require('fs');

// args prefix differs for selenium3 and selenium4
let argsPrefix = '--';
if (!isSelenium4(opts.version)) {
argsPrefix = '-';
let argsPrefix = '-';
if (isSelenium4(opts.version)) {
argsPrefix = '--';
}

@@ -56,0 +56,0 @@ const portArg = seleniumArgs.indexOf(`${argsPrefix}port`);

@@ -91,4 +91,6 @@ module.exports = start;

args.push('-Dwebdriver.chrome.driver=' + fsPaths.chrome.installPath);
opts.seleniumArgs.push('-I');
opts.seleniumArgs.push('chrome');
if (isSelenium4(opts.version)) {
opts.seleniumArgs.push('-I');
opts.seleniumArgs.push('chrome');
}
}

@@ -98,4 +100,6 @@

args.push('-Dwebdriver.ie.driver=' + fsPaths.ie.installPath);
opts.seleniumArgs.push('-I');
opts.seleniumArgs.push('internet explorer');
if (isSelenium4(opts.version)) {
opts.seleniumArgs.push('-I');
opts.seleniumArgs.push('internet explorer');
}
} else {

@@ -107,4 +111,6 @@ delete fsPaths.ie;

args.push('-Dwebdriver.edge.driver=' + fsPaths.edge.installPath);
opts.seleniumArgs.push('-I');
opts.seleniumArgs.push('edge');
if (isSelenium4(opts.version)) {
opts.seleniumArgs.push('-I');
opts.seleniumArgs.push('edge');
}
} else {

@@ -116,4 +122,6 @@ delete fsPaths.edge;

args.push('-Dwebdriver.gecko.driver=' + fsPaths.firefox.installPath);
opts.seleniumArgs.push('-I');
opts.seleniumArgs.push('firefox');
if (isSelenium4(opts.version)) {
opts.seleniumArgs.push('-I');
opts.seleniumArgs.push('firefox');
}
}

@@ -123,4 +131,6 @@

args.push('-Dwebdriver.edge.driver=' + fsPaths.chromiumedge.installPath);
opts.seleniumArgs.push('-I');
opts.seleniumArgs.push('edge');
if (isSelenium4(opts.version)) {
opts.seleniumArgs.push('-I');
opts.seleniumArgs.push('edge');
}
} else {

@@ -134,3 +144,3 @@ delete fsPaths.chromiumedge;

// theoretically be updated to support other OSes besides macOS)
if (process.platform === 'darwin') {
if (process.platform === 'darwin' && isSelenium4(opts.version)) {
// SafariDriver is already bundled with Safari, so there's nothing that needs to be downloaded

@@ -137,0 +147,0 @@ opts.seleniumArgs.push('-I');

{
"name": "selenium-standalone",
"version": "8.2.3",
"version": "8.2.4",
"description": "installs a `selenium-standalone` command line to install and start a standalone selenium server",

@@ -12,3 +12,3 @@ "main": "index.js",

"start": "DEBUG=selenium-standalone:* ./bin/selenium-standalone install && DEBUG=selenium-standalone:* ./bin/selenium-standalone start",
"test": "./bin/selenium-standalone install && mocha",
"test": "export SELENIUM_VERSION=4.4.0&& ./bin/selenium-standalone install && mocha && export SELENIUM_VERSION=3.141.59&& ./bin/selenium-standalone install && mocha 'test/programmatic.js'",
"docker:build": "run-s docker:build:*",

@@ -60,8 +60,8 @@ "docker:build:latest": "docker build -t webdriverio/${npm_package_name}:latest --cache-from webdriverio/${npm_package_name}:latest .",

"devDependencies": {
"chai": "4.3.6",
"chai": "4.3.7",
"doctoc": "2.2.1",
"eslint": "8.26.0",
"eslint": "8.27.0",
"eslint-config-prettier": "8.5.0",
"eslint-plugin-prettier": "4.2.1",
"husky": "8.0.1",
"husky": "8.0.2",
"json": "11.0.0",

@@ -68,0 +68,0 @@ "mocha": "10.1.0",

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