https://github.com/browserstack/automate-node-samples
Sample mocha, protractor, nightwatchjs, wd parallel testing code for running selenium with BrowserStack Automate
https://github.com/browserstack/automate-node-samples
Last synced: 5 months ago
JSON representation
Sample mocha, protractor, nightwatchjs, wd parallel testing code for running selenium with BrowserStack Automate
- Host: GitHub
- URL: https://github.com/browserstack/automate-node-samples
- Owner: browserstack
- Created: 2013-11-13T16:00:24.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2025-03-20T02:27:00.000Z (about 1 year ago)
- Last Synced: 2025-07-13T07:46:47.775Z (9 months ago)
- Language: JavaScript
- Homepage: https://www.browserstack.com/automate/node
- Size: 187 KB
- Stars: 46
- Watchers: 20
- Forks: 26
- Open Issues: 19
-
Metadata Files:
- Readme: README.md
- Codeowners: CODEOWNERS
Awesome Lists containing this project
README
# Automate Node Samples
This repository contains code samples from http://browserstack.com/automate/node. Please feel free to clone the repo and use the example code.
Master branch contains **Selenium 3** samples, for **Selenium 4 - W3C protocol** please checkout [selenium-4](https://github.com/browserstack/automate-node-samples/tree/selenium-4) branch
Do remember to switch the BROWSERSTACK_USERNAME and BROWSERSTACK_ACCESS_KEY with your own browserstack credentials.
#### Setup
To setup run `npm install`
#### Samples
1. `node single.js` : Run test on a single browser.
2. `node parallel.js` : Run test on multiple browsers.
3. `mocha mocha/BrowserStackRemoteUnit.js` : Run sample mocha test.
## Other frameworks
For other nodejs frameworks, refer to their individual repositories -
- [Internjs](https://github.com/browserstack/intern-browserstack)
- [Protractor](https://github.com/browserstack/protractor-browserstack)
- [Nightwatch](https://github.com/browserstack/nightwatch-browserstack)
- [WD](https://github.com/browserstack/wd-browserstack)
- [Nemo](https://github.com/browserstack/nemo-browserstack)