Skip to content
Switch branches/tags

Latest commit


Git stats


Failed to load latest commit information.
Latest commit message
Commit time

Jest Selenium BrowserStack Example

  1. Clone it git clone
  2. cd jest-selenium-browserstack-example
  3. Replace YOUR_BROWSERSTACK_USERNAME with BrowserStack username and YOUR_BROWSERSTACK_KEY with BrowserStack key in files inside test/ directory
  4. Run selected tests (see scripts section below) and/or modify source

For more information head to


Local tests

Run Jest Selenium tests locally with:

yarn test:local

Manual tests

Connect with BrowserStack manually:

~/.browserstack/BrowserStackLocal --key [YOUR_BROWSERSTACK_KEY] --folder $(pwd)

and then run tests with:

yarn test:manual

Automate tests

Just execute:

yarn test:automate

And see tests automatically connecting and running on BrowserStack.

Parametrized tests

To run tests against browser and OS specified as command execution arguments use:

BROWSER=chrome OS=Windows yarn test:parametrized

Sequential tests

Here is how you may run tests for multiple browsers in one call, adjust configuration in ./test/config.json and run:

yarn test:sequential

Other scripts available

yarn build

For building tested code from src/ directory.

yarn clean

To remove lib/ directory generated with build script.

yarn lint

Runs Eslint on files inside src/ directory.

author: Jan Grzegorowski