• Stars
    star
    901
  • Rank 48,652 (Top 1.0 %)
  • Language
    JavaScript
  • License
    Other
  • Created over 10 years ago
  • Updated about 1 month ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

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

Node.js Selenium Standalone Test

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

Supported Drivers:

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

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.

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 our Gitter Channel if you have question on where to start contributing.

More Repositories

1

webdriverio

Next-gen browser and mobile automation test framework for Node.js
TypeScript
8,718
star
2

cucumber-boilerplate

Boilerplate project to run WebdriverIO tests with Cucumber
JavaScript
520
star
3

appium-boilerplate

Boilerplate project to run WebdriverIO tests with Appium to test native applications on iOS and Android
TypeScript
410
star
4

query-selector-shadow-dom

querySelector that can pierce Shadow DOM roots without knowing the path through nested shadow roots. Useful for automated testing of Web Components. Production use is not advised, this is for test environments/tools such as Web Driver, Playwright, Puppeteer
JavaScript
218
star
5

visual-testing

Image comparison / visual regression testing for WebdriverIO
TypeScript
107
star
6

native-demo-app

Guinea pig app for showcasing test automation with WebdriverIO and Appium
TypeScript
81
star
7

expect-webdriverio

WebdriverIO Assertion Library
TypeScript
70
star
8

jasmine-boilerplate

Boilerplate project to run WebdriverIO tests with Jasmine
TypeScript
44
star
9

awesome-webdriverio

A curated list of awesome WebdriverIO resources, libraries and tools
39
star
10

workshop

A hands on course to learn WebdriverIO from scratch
JavaScript
37
star
11

chrome-recorder

Generate WebdriverIO Tests from Google Chrome DevTools Recordings.
TypeScript
26
star
12

codemod

A codemod to transform Protractor into WebdriverIO tests
JavaScript
24
star
13

create-wdio

One-line installer for WebdriverIO
TypeScript
21
star
14

wdio-wait-for

a lightweight library of useful expected conditions for the WebdriverIO framework.
TypeScript
18
star
15

example-recipes

A set of common automation recipes using WebdriverIO
JavaScript
18
star
16

webdriverio-schematics

Add WebdriverIO to an Angular CLI project
TypeScript
18
star
17

component-testing-examples

This repository contains several examples testing web components using WebdriverIO
TypeScript
12
star
18

recorder-extension

WebdriverIO Extension for Devtools that allows you to export tests directly from the Recorder panel.
JavaScript
9
star
19

bx

Command line tool to run JavaScript, TypeScript or HTML files in the browser.
TypeScript
7
star
20

electron-boilerplate

Boilerplate project to demonstrate testing ElectronJS Applications with WebdriverIO
TypeScript
7
star
21

guinea-pig

Guinea pig website for internal e2e testing purposes
CSS
4
star
22

.github

Default Community health files for WebdriverIO projects
2
star
23

expense-action

GitHub Action that enables WebdriverIO's expense workflow.
TypeScript
1
star