This repo contains samples for running Playwright tests on BrowserStack using the browserstack-node-sdk.
git clone -b sdk https://github.com/browserstack/node-js-playwright-browserstack.git
and run cd node-js-playwright-browserstack
.BROWSERSTACK_USERNAME
and BROWSERSTACK_ACCESS_KEY
as environment variables with your BrowserStack Username and Access Key or update the same in browserstack.yml
file.npm i
to install the dependencies.browserstack.yml
, run npm run sample-test
.browserstack.yml
, run npm run sample-local-test
.