https://github.com/browserstack/node-js-selenium-browserstack
https://github.com/browserstack/node-js-selenium-browserstack
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/browserstack/node-js-selenium-browserstack
- Owner: browserstack
- Created: 2022-04-04T05:15:57.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2024-06-19T15:38:03.000Z (about 2 years ago)
- Last Synced: 2025-04-22T21:06:14.361Z (about 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 76.2 KB
- Stars: 0
- Watchers: 13
- Forks: 8
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# node-js-selenium-browserstack
## prerequisite
Nodejs installed on your system
https://nodejs.org/en/
## Steps
Step-1
Clone the repo, go to the cloned directory and install the dependencies with commands:
```
git clone https://github.com/browserstack/node-js-selenium-browserstack.git
cd node-js-selenium-browserstack
npm install
```
Step-2
Configure the capabilities and swap your credentials.
1. navigate to `/conf.js`
2. Change the OS or browser if you want.
3. Use your BROWSERSTACK_USERNAME and BROWSERSTACK_ACCESS_KEY from the dashboard.
Step-3
Run the test and see the session on the browserstack dashboard.
Follow step-2 then,
To run a test session:
```
npm run parallel
```
---
To run a local test session:
also provide the access key to bs_local_args
```javascript
// replace with your key.
var bs_local_args = { 'key': ACCESS_KEY };
```
```
npm run local
```