- Notifications
You must be signed in to change notification settings - Fork 53
Open
Description

When i trying "Legacy Integration" with my tests wrote on "NodeJS/Playwright", when i trying connect via wssEndpoint getting such issue "Error: browserType.connect: Target page, context or browser has been closed".
test('Authentication Test', async ({}) =>{const caps ={osVersion: "13.0", deviceName: "Samsung Galaxy S23", // "Samsung Galaxy S22 Ultra", "Google Pixel 7 Pro", "OnePlus 9", etc. browserName: "chrome", realMobile: "true", name: "My android playwright test", build: "playwright-build-1", "browserstack.username": "userName", "browserstack.accessKey": "password", "browserstack.local": true, } let vBrowser = await playwright.chromium.connect({wsEndpoint: `wss://cdp.browserstack.com/playwright?caps=` + `${encodeURIComponent(JSON.stringify(caps))}`, }); let vContext = await vBrowser.newContext(); const page = await vContext.newPage(); await test.step("Login Test", async () =>{await Login(page, config)}) Metadata
Metadata
Assignees
Labels
No labels