selenium-standalone
Advanced tools
Comparing version 8.0.2 to 8.0.3
@@ -41,2 +41,5 @@ <!-- START doctoc generated TOC please keep comment here to allow auto update --> | ||
# start a single driver | ||
selenium-standalone start --singleDriverStart=chrome | ||
# don't forget to specify downloaded version for v4 alpha | ||
@@ -43,0 +46,0 @@ ./bin/selenium-standalone start --version=4.0.0-alpha-7 |
@@ -53,2 +53,10 @@ module.exports = start; | ||
if (opts.singleDriverStart) { | ||
const singleDriver = opts.drivers[opts.singleDriverStart]; | ||
if (singleDriver) { | ||
opts.drivers = {}; | ||
opts.drivers[opts.singleDriverStart] = singleDriver; | ||
} | ||
} | ||
const fsPaths = computeFsPaths({ | ||
@@ -55,0 +63,0 @@ seleniumVersion: opts.version, |
{ | ||
"name": "selenium-standalone", | ||
"version": "8.0.2", | ||
"version": "8.0.3", | ||
"description": "installs a `selenium-standalone` command line to install and start a standalone selenium server", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -1,23 +0,8 @@ | ||
<!-- START doctoc generated TOC please keep comment here to allow auto update --> | ||
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE --> | ||
Node.js Selenium Standalone [![Test](https://github.com/webdriverio/selenium-standalone/actions/workflows/test.yml/badge.svg?branch=main&event=push)](https://github.com/webdriverio/selenium-standalone/actions/workflows/test.yml) | ||
=========================== | ||
- [selenium-standalone](#selenium-standalone) | ||
- [Install & Run](#install--run) | ||
- [Command line interface (CLI)](#command-line-interface-cli) | ||
- [Application Programming Interface (API)](#application-programming-interface-api) | ||
- [Available browsers](#available-browsers) | ||
- [Tips](#tips) | ||
- [Examples of combining with other tools](#examples-of-combining-with-other-tools) | ||
- [Contributing](#contributing) | ||
> A node based CLI library for launching [Selenium](http://www.seleniumhq.org/download/) with [WebDriver](https://w3c.github.io/webdriver/) support. | ||
<!-- END doctoc generated TOC please keep comment here to allow auto update --> | ||
Supported Drivers: | ||
# selenium-standalone | ||
[![dependencies Status](https://david-dm.org/webdriverio/selenium-standalone/status.svg)](https://david-dm.org/webdriverio/selenium-standalone) | ||
[![devDependencies Status](https://david-dm.org/webdriverio/selenium-standalone/dev-status.svg)](https://david-dm.org/webdriverio/selenium-standalone?type=dev) | ||
> A node based CLI library for launching [Selenium](http://www.seleniumhq.org/download/) with WebDrivers support. | ||
Supported WebDrivers: | ||
* [ChromeDriver](https://github.com/SeleniumHQ/selenium/wiki/ChromeDriver) | ||
@@ -32,3 +17,3 @@ * [geckodriver](https://github.com/mozilla/geckodriver/releases) (Firefox) | ||
*As global npm package* | ||
### As Global NPM Package | ||
@@ -40,3 +25,3 @@ ```shell | ||
*As a npm package* | ||
### As a Local NPM Package | ||
@@ -48,3 +33,3 @@ ```shell | ||
*As a Docker service* | ||
### As a Docker Service | ||
@@ -55,4 +40,26 @@ ```shell | ||
![screencast](screencast.gif) | ||
If you run Chrome or Firefox tests within a Docker container make sure you set capabilities so that the session is headless, e.g.: | ||
```js | ||
capabilities: { | ||
browserName: 'chrome', | ||
'goog:chromeOptions': { | ||
args: ['--no-sandbox', '--headless'] | ||
} | ||
} | ||
``` | ||
or Firefox: | ||
```js | ||
capabilities: { | ||
browserName: 'firefox', | ||
'moz:firefoxOptions': { | ||
args: ['-headless'] | ||
} | ||
} | ||
``` | ||
If you are looking for more sophisticated Docker container that allows you to run browser, check out the [Docker Selenium](https://github.com/SeleniumHQ/docker-selenium) project. | ||
## Command line interface ([CLI](./docs/CLI.md)) | ||
@@ -85,4 +92,6 @@ | ||
## Contributing | ||
## :woman_technologist: :man_technologist: Contributing | ||
See [Contributing](./CONTRIBUTING.md) | ||
You like this project and want to help making it better? Awesome! Have a look into our [Contributor Documentation](CONTRIBUTING.md) to get started with setting up the repo. | ||
If you're looking for issues to help out with, check out [the issues labelled "good first pick"](https://github.com/webdriverio/selenium-standalone/issues?q=is%3Aopen+is%3Aissue+label%3A"good+first+pick"). You can also reach out in our [Gitter Channel](https://gitter.im/webdriverio/webdriverio) if you have question on where to start contributing. |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
83755
1233
93