You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This throws a
TypeError: Cannot read properties of undefined (reading 'wsEndpoint')
However, when I remove test.describe.configure({ mode: 'serial' }); from line 1 and browser from before all the tests works with the configuration both in browserstack and local.
Expected behavior
I expect to see it working using describe.configure({mode:serial}) and have browser in the before all
Actual behavior
Throws error
TypeError: Cannot read properties of undefined (reading 'wsEndpoint')
Additional context
No response
Environment
Mac OS and cloud( browserstack)
The text was updated successfully, but these errors were encountered:
It looks like your configuration also depends on a remote connection to a browser. Please share complete minimal example which we could run locally to debug the issue.
This test passes just fine. Also it doesn't use wsEndpoint anywhere. The problem seems to be coming from the browserstack hooks into Playwright, in that case you should file this bug with them we cannot help with that. If you think this is a Playwright issue we need a self-contained reproduction that doesn't depend on external services such browserstack.
Version
1.44.1
Steps to reproduce
I am trying to run my tests in same browser page and I am trying to use the way it has been shown in playwright documentation.
import { test, type Page } from '@playwright/test';
test.describe.configure({ mode: 'serial' });
let page: Page;
test.beforeAll(async ({ browser }) => {
page = await browser.newPage();
});
test('runs first', async () => {
await page.goto('https://playwright.dev/');
});
test.afterAll(async () => {
await page.close();
});
This throws a
TypeError: Cannot read properties of undefined (reading 'wsEndpoint')
However, when I remove test.describe.configure({ mode: 'serial' }); from line 1 and browser from before all the tests works with the configuration both in browserstack and local.
Expected behavior
I expect to see it working using describe.configure({mode:serial}) and have browser in the before all
Actual behavior
Throws error
Additional context
No response
Environment
The text was updated successfully, but these errors were encountered: