Skip to content

Latest commit

 

History

History
19 lines (13 loc) · 1.25 KB

README.md

File metadata and controls

19 lines (13 loc) · 1.25 KB

node-js-playwright-browserstack

This repo contains samples for running Playwright tests on BrowserStack using the browserstack-node-sdk.

BrowserStack Logo

Setup

  • Clone the repo git clone -b sdk https://github.com/browserstack/node-js-playwright-browserstack.git and run cd node-js-playwright-browserstack.
  • Set BROWSERSTACK_USERNAME and BROWSERSTACK_ACCESS_KEY as environment variables with your BrowserStack Username and Access Key or update the same in browserstack.yml file.
  • Run npm i to install the dependencies.

Running your tests

  • To run the sample tests in parallel across the platforms specified in the browserstack.yml, run npm run sample-test.
  • To run the sample local tests in parallel across the platforms specified in the browserstack.yml, run npm run sample-local-test.

Notes