Gathering detailed insights and metrics for @wdio/selenium-standalone-service
Gathering detailed insights and metrics for @wdio/selenium-standalone-service
Gathering detailed insights and metrics for @wdio/selenium-standalone-service
Gathering detailed insights and metrics for @wdio/selenium-standalone-service
wdio-selenium-standalone-service
WebdriverIO service to start & stop Selenium Standalone
wdio-selenium-standalone-grid-service
selenium grid
wdio-dockerized-selenium-service
WebdriverIO service to start & stop a docker container running Selenium Standalone server
wdio-selenoid-standalone-service
Using Selenium Standalone, ChromeDriver etc are great ways to run automated tests on your machine or CI, but they use the locally installed browser to execute the tests. What happens if you don't have that browser on your machine? Or if you want to test
Next-gen browser and mobile automation test framework for Node.js
npm install @wdio/selenium-standalone-service
Typescript
Module System
Min. Node Version
Node Version
NPM Version
25
Supply Chain
84.3
Quality
85.3
Maintenance
100
Vulnerability
98.6
License
TypeScript (94.2%)
JavaScript (3.45%)
EJS (1.52%)
CSS (0.71%)
Gherkin (0.07%)
Dockerfile (0.03%)
Vue (0.01%)
Total Downloads
36,158,611
Last Day
9,148
Last Week
63,504
Last Month
261,547
Last Year
4,175,547
9,134 Stars
7,676 Commits
2,525 Forks
216 Watching
30 Branches
612 Contributors
Latest Version
8.15.0
Package Id
@wdio/selenium-standalone-service@8.15.0
Unpacked Size
6.84 kB
Size
2.83 kB
File Count
3
NPM Version
9.8.1
Node Version
18.15.0
Publised On
23 Aug 2023
Cumulative downloads
Total Downloads
Last day
-15.9%
9,148
Compared to previous day
Last week
-2.3%
63,504
Compared to previous week
Last month
-0.3%
261,547
Compared to previous month
Last year
-43.9%
4,175,547
Compared to previous year
1
Handling the Selenium server is out of the scope of the actual WebdriverIO project. This service helps you to run Selenium seamlessly when running tests with the WDIO testrunner. It uses the well-known selenium-standalone NPM package that automatically sets up the standalone server and all required drivers for you.
Note: If you use this service you don't need any other driver services (e.g. wdio-chromedriver-service) anymore. All local browsers can be started using this service.
Before starting make sure you have JDK installed.
The easiest way is to keep @wdio/selenium-standalone-service
as a devDependency in your package.json
.
You can do it by:
1npm install @wdio/selenium-standalone-service --save-dev
Instructions on how to install WebdriverIO
can be found here.
By default, ChromeDriver, Geckodriver and some other browser drivers based on the OS are available when installed on the user's system. To use the service you need to add selenium-standalone
to your service array:
1/** 2 * simplified mode (available since v6.11.0) 3 * set `true` to use the version provided by `selenium-standalone`, 'latest' by default 4*/ 5export const config = { 6 // ... 7 services: [ 8 ['selenium-standalone', { drivers: { firefox: '0.33.0', chrome: true, chromiumedge: 'latest' } }] 9 ], 10 // ... 11};
Control browser driver installation/running separately.
1// wdio.conf.js 2const drivers = { 3 chrome: { version: '112.0.5615.49.101' }, // https://chromedriver.chromium.org/ 4 firefox: { version: '0.33.0' }, // https://github.com/mozilla/geckodriver/releases 5 chromiumedge: { version: '114.0.1791.0' } // https://developer.microsoft.com/en-us/microsoft-edge/tools/webdriver/ 6} 7 8export const config = { 9 // ... 10 services: [ 11 ['selenium-standalone', { 12 logPath: 'logs', 13 installArgs: { drivers }, // drivers to install 14 args: { drivers } // drivers to use 15 }] 16 ], 17 // ... 18};
By default the service starts on localhost:4444
and ensures that all capabilities are able to connect to it. If you prefer to run on a different port please specify port
as an option in your capabilities, e.g.:
1// wdio.conf.js 2export const config = { 3 // ... 4 services: [ 5 ['selenium-standalone', { 6 logPath: './temp', 7 args: { 8 version: "4.4.0", 9 seleniumArgs: ['--host', '127.0.0.1','--port', '5555'] 10 }, 11 }] 12 ], 13 capabilities: [{ 14 browserName: 'chrome', 15 port: 5555 16 }, { 17 browserName: 'firefox', 18 port: 5555 19 }, { 20 browserName: 'MicrosoftEdge', 21 port: 5555 22 }] 23 // ... 24}
The following options can be added to the wdio.conf.js file.
Path where all logs from the Selenium server should be stored.
Type: String
Default: {}
Example:
1logPath : './',
args
Map of arguments for the Selenium server, passed directly to Selenium.start()
.
Please note that latest drivers have to be installed, see installArgs
.
Type: Object
Default: {}
Example:
1args: { 2 version : "4.4.0", 3 drivers : { 4 chrome : { 5 version : "112.0.5615.49.101", 6 arch : process.arch 7 } 8 } 9},
installArgs
Map of arguments for the Selenium server, passed directly to Selenium.install()
.
By default, versions will be installed based on what is set in the selenium-standalone package. The defaults can be overridden by specifying the versions.
Type: Object
Default: {}
Example:
1installArgs: { 2 version : "4.4.0", 3 baseURL : "https://github.com/SeleniumHQ/selenium/releases/download", 4 drivers : { 5 chrome : { 6 version : "112.0.5615.49.101", 7 arch : process.arch, 8 baseURL : "https://chromedriver.storage.googleapis.com" 9 } 10 } 11},
Boolean for skipping selenium-standalone
server install.
Type: Boolean
Default: false
For more information on WebdriverIO see the homepage.
No vulnerabilities found.
Reason
30 commit(s) and 23 issue activity found in the last 90 days -- score normalized to 10
Reason
security policy file detected
Details
Reason
no dangerous workflow patterns detected
Reason
license file detected
Details
Reason
binaries present in source code
Details
Reason
badge detected: Passing
Reason
Found 9/28 approved changesets -- score normalized to 3
Reason
dependency not pinned by hash detected -- score normalized to 2
Details
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
project is not fuzzed
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
15 existing vulnerabilities detected
Details
Score
Last Scanned on 2024-12-16
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More