-
Notifications
You must be signed in to change notification settings - Fork 3.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: Error: locator.click: Target page, context or browser has been closed #34232
Comments
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. |
That repository isn't minimal, it contains much more than just the purported bug. Please try recreating the bug in a blank project. |
We have similar issue with WebKit, once we upgraded Playwright 1.48.2 => 1.49.1 (i.e. WebKit 18.0 => 18.2).
Unfortunately it's totally random (and most of time tests pass) so it's hard to reproduce even in our environment. |
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: