Skip to content

A Node.js based package and CLI library for launching Selenium with WebDrivers support (Chrome, Firefox, IE, Edge)

License

Notifications You must be signed in to change notification settings

webdriverio/selenium-standalone

Folders and files

NameName
Last commit message
Last commit date

Latest commit

5ddc9c1 Β· Jan 16, 2025
Jan 8, 2025
Jun 18, 2021
Oct 2, 2023
Oct 18, 2021
Jun 25, 2024
Jan 8, 2025
Jun 25, 2024
Oct 19, 2021
Nov 26, 2020
Jun 18, 2021
Mar 22, 2024
Mar 13, 2024
Nov 26, 2020
Oct 18, 2021
Nov 26, 2020
Dec 30, 2013
Oct 18, 2021
Feb 8, 2023
Jun 25, 2024
Nov 16, 2016
Jun 25, 2024
Nov 26, 2020
Jan 16, 2025
Jan 16, 2025
Oct 20, 2017
Jan 17, 2015
Apr 7, 2024

Repository files navigation

Node.js Selenium Standalone Test Supported node versions

A node based CLI library for launching Selenium with WebDriver support.

Supported Drivers:

Available browsers

By default, Google Chrome, Firefox and Microsoft Edge are available when installed on the host system.

Starting from v6.22 chrome, edgechromium, and geckodriver support latest as version.

Starting from v9.0.6 supported changes regarding new storage for latest versions of chromedriver.

Starting from v9.2.0 added new feature 'onlyDriver'

Install & Run

As Global NPM Package

npm install selenium-standalone -g
selenium-standalone install && selenium-standalone start

As a Local NPM Package

npm install selenium-standalone --save-dev
npx selenium-standalone install && npx selenium-standalone start

As a Docker Service

docker run -it -p 4444:4444 webdriverio/selenium-standalone

If you run Chrome or Firefox tests within a Docker container make sure you set capabilities so that the session is headless, e.g.:

capabilities: {
  browserName: 'chrome',
  'goog:chromeOptions': {
    args: ['--no-sandbox', '--headless']
  }
}

or Firefox:

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 project.

Command line interface (CLI)

See CLI docs

Application Programming Interface (API)

See API docs

Tips

Examples of combining with other tools

πŸ‘©β€πŸ’» πŸ‘¨β€πŸ’» Contributing

You like this project and want to help making it better? Awesome! Have a look into our Contributor Documentation 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". You can also reach out in on Discord if you have question on where to start contributing.