Repository navigation
Get error on step npm run sample-test #2
Copy link
Copy link
Open
Description
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
-
[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) -
[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)
- [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 ==================
Reacted by Arthur Jacquemin and Spencer Sablan
Metadata
Metadata
Assignees
Labels
No labels
Activity
spencersablan commentedon Jul 7, 2023
Getting the same thing 🤔
spencersablan commentedon Jul 7, 2023
Ahhh I think I got it. Two things:
exports.BS_LOCAL_ARGS, be sure to put your access key.iamdreo commentedon 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 commentedon Feb 1, 2024
Check out this doc! https://www.browserstack.com/docs/automate/playwright/playwright-capabilities
You'll find it there 😄