Skip to content

Get error on step npm run sample-test #2

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
KaushikChavda opened this issue May 25, 2023 · 4 comments
Open

Get error on step npm run sample-test #2

KaushikChavda opened this issue May 25, 2023 · 4 comments

Comments

@KaushikChavda
Copy link

Hello Support,

I’m following the steps and get error on Step 4:
https://www.browserstack.com/docs/automate/playwright/getting-started/nodejs#MacOS_or_Linux

  1. [playwright-webkit@latest:OSX Ventura] › sample_test.js:4:1 › BstackDemo Add to cart ==========

    browserType.launch: Browser has been closed

     at Object.playwrightFixtures.browser.scope [as fn] ([/Users/kaushikchavda/Projects/node-js-playwright-browserstack/node_modules/@playwright/test/lib/index.js:180:51](mailto:/Users/kaushikchavda/Projects/node-js-playwright-browserstack/node_modules/@playwright/test/lib/index.js:180:51))
     at [/Users/kaushikchavda/Projects/node-js-playwright-browserstack/node_modules/@playwright/test/lib/fixtures.js:95:81](mailto:/Users/kaushikchavda/Projects/node-js-playwright-browserstack/node_modules/@playwright/test/lib/fixtures.js:95:81)
    
  2. [chrome@latest:Windows 11] › sample_test.js:4:1 › BstackDemo Add to cart ======================

browserType.launch: Browser has been closed

    at Object.playwrightFixtures.browser.scope [as fn] ([/Users/kaushikchavda/Projects/node-js-playwright-browserstack/node_modules/@playwright/test/lib/index.js:180:51](mailto:/Users/kaushikchavda/Projects/node-js-playwright-browserstack/node_modules/@playwright/test/lib/index.js:180:51))
    at [/Users/kaushikchavda/Projects/node-js-playwright-browserstack/node_modules/@playwright/test/lib/fixtures.js:95:81](mailto:/Users/kaushikchavda/Projects/node-js-playwright-browserstack/node_modules/@playwright/test/lib/fixtures.js:95:81)
  1. [playwright-firefox:Windows 11] › sample_test.js:4:1 › BstackDemo Add to cart =================
browserType.launch: Browser has been closed

    at Object.playwrightFixtures.browser.scope [as fn] ([/Users/kaushikchavda/Projects/node-js-playwright-browserstack/node_modules/@playwright/test/lib/index.js:180:51](mailto:/Users/kaushikchavda/Projects/node-js-playwright-browserstack/node_modules/@playwright/test/lib/index.js:180:51))
    at [/Users/kaushikchavda/Projects/node-js-playwright-browserstack/node_modules/@playwright/test/lib/fixtures.js:95:81](mailto:/Users/kaushikchavda/Projects/node-js-playwright-browserstack/node_modules/@playwright/test/lib/fixtures.js:95:81)

3 failed
[chrome@latest:Windows 11] › sample_test.js:4:1 › BstackDemo Add to cart =======================
[playwright-webkit@latest:OSX Ventura] › sample_test.js:4:1 › BstackDemo Add to cart ===========
[playwright-firefox:Windows 11] › sample_test.js:4:1 › BstackDemo Add to cart ==================

@spencersablan
Copy link

Getting the same thing 🤔

@spencersablan
Copy link

Ahhh I think I got it. Two things:

  1. Make sure you've downloaded Browserstack local
  2. In exports.BS_LOCAL_ARGS, be sure to put your access key.

@iamdreo
Copy link

iamdreo commented Jan 31, 2024

HI @spencersablan please i get kind of a similar error but i cant find where to add the exports.bs_local_Args based on the examples in the doc. please where do i add this?

@spencersablan
Copy link

HI @spencersablan please i get kind of a similar error but i cant find where to add the exports.bs_local_Args based on the examples in the doc. please where do i add this?

Check out this doc! https://www.browserstack.com/docs/automate/playwright/playwright-capabilities

You'll find it there 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants