Skip to content

grandEL-dsouza/Playwright-with-BrowserStack-Node-SDK-in-full-screen-mode

Repository files navigation

Playwright-with-BrowserStack-Node-SDK-in-full-screen-mode

node-js-playwright-browserstack

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

Setup

  • Clone the repo git clone -b sdk https://github.com/grandEL-dsouza/Playwright-with-BrowserStack-Node-SDK-in-full-screen-mode.git and run cd Playwright-with-BrowserStack-Node-SDK-in-full-screen-mode.
  • 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