browserstack / node-js-playwright-browserstack

Creating a sample repo for different Playwright languages and runners
11 stars 33 forks source link

Android devices: Error: browserType.launch: Browser has been closed #11

Closed vitali-hanich closed 1 year ago

vitali-hanich commented 1 year ago

When I am trying to run the sample-test script with an Android device, I am getting the error: Error: browserType.launch: Browser has been closed. For Windows it works perfectly fine.

Steps to reproduce:

git clone https://github.com/browserstack/node-js-playwright-browserstack.git

Checkout to sdk branch.

Update the configuration file. browserstack.yml

platforms:
  - deviceName: Samsung Galaxy S22 Ultra
    browserName: chrome # Try 'samsung' for Samsung browser
    osVersion: 12.0

package.json

"devDependencies": {
    "@playwright/test": "^1.35.0",
    "browserstack-node-sdk": "latest"
  }
07souravkunda commented 1 year ago

@vitali-hanich thanks for reporting this issue.

Please share some additional details,

vitali-hanich commented 1 year ago

@07souravkunda , yesterday the issue was solved with the help of BrowserStack. It occurred that my Mobile license got expired. But it is the shame that there are no meaningful error messages - just browser has been closed.