installs a `selenium-standalone` command line to install and start a standalone selenium server
npm install selenium-standaloneNode.js Selenium Standalone  !Supported node versions
===========================
> A node based CLI library for launching Selenium with WebDriver support.
Supported Drivers:
* ChromeDriver
* geckodriver (Firefox)
* IEDriver
* Edge WebDriver
* Chromium Edge WebDriver
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'
``shell`
npm install selenium-standalone -g
selenium-standalone install && selenium-standalone start
`shell`
npm install selenium-standalone --save-dev
npx selenium-standalone install && npx selenium-standalone start
`shell`
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.:
`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 project.
See CLI docs
See API docs
- Start Selenium whenever your (ubuntu) machine starts!
- Ensure you have the minimum required Java version
- Logging
- Error: unable to get local issuer certificate`
- Running headlessly with xvfb
- WebdriverIO + Jasmine in CircleCI
- WebdriverIO + Cucumber in GitLab
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.