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
All the test should run in both version 1.43.1 and 1.49.1
Actual behavior
when upgrading playwright version from 1.43.1 to 1.49.1 I got those two errors : Error: locator.click: Target page, context or browser has been closed or Error: locator.click: Target crashed .
These errors are reproducible only with WebKit. I can replicate the issue locally, on the CI, and even with the Playwright Docker image
It fails in this part:
Error: locator.click: Target page, context or browser has been closed
Call log:
- waiting for getByTestId('return-simulation-result')
- locator resolved to <button type="button" class="btn btn-secondary btn-block" data-testid="return-simulation-result">…</button>
- attempting click action
- waiting for element to be visible, enabled and stable at pages/operational-studies-page-model.ts:106
104 |
105 | async returnSimulationResult() {
> 106 | await this.returnSimulationResultButton.click();
| ^
107 | }
108 |
109 | async checkPathfindingDistance(distance: string | RegExp) {
at OperationalStudiesPage.returnSimulationResult (/app/front/tests/pages/operational-studies-page-model.ts:106:45)
at /app/front/tests/012-op-simulation-settings-tab.spec.ts:342:34
Additional context
I’ve already enabled and verified the rule:
"@typescript-eslint/no-floating-promises": "error"
to ensure no await statements are missing. you can also check the trace
Sounds like an application bug to me, not a Playwright bug. If you believe it's a Playwright bug, please provide a self-contained reproduction, which we can run locally to reproduce your issue. Thanks for your understanding!
@Skn0tt I’ve added the repository to reproduce the issue locally.
PS: The tests work fine with version 1.43.1, but after updating to 1.49.1, they fail exclusively on WebKit. (Note: The tests pass in headed mode.)
Version
1.49.1
Steps to reproduce
docker compose up -d --build
cd front
Expected behavior
All the test should run in both version 1.43.1 and 1.49.1
Actual behavior
when upgrading playwright version from 1.43.1 to 1.49.1 I got those two errors :
Error: locator.click: Target page, context or browser has been closed
orError: locator.click: Target crashed
.These errors are reproducible only with WebKit. I can replicate the issue locally, on the CI, and even with the Playwright Docker image
It fails in this part:
Additional context
I’ve already enabled and verified the rule:
"@typescript-eslint/no-floating-promises": "error"
to ensure no await statements are missing. you can also check the trace
Environment
The text was updated successfully, but these errors were encountered: