Skip to content

Creating a sample repo for different Playwright languages and runners

Notifications You must be signed in to change notification settings

browserstack/node-js-playwright-browserstack

Repository files navigation

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

About

Creating a sample repo for different Playwright languages and runners

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published