Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.
TypeScript automationchromechromiume2e-testingelectronend-to-end-testingfirefoxjavascriptplaywrighttesttest-automationtestingtesting-toolswebwebkit
fix: do not produce `TargetClosedError: <message>` errors (#28704)
Dmitry Gozman6b178d22e23d
diff --git a/packages/playwright-core/src/client/errors.ts b/packages/playwright-core/src/client/errors.tsindex 4d8a08c4ac..51555202e5 100644--- a/packages/playwright-core/src/client/errors.ts+++ b/packages/playwright-core/src/client/errors.ts@@ -28,7 +28,6 @@ export class TimeoutError extends Error {export class TargetClosedError extends Error {constructor(cause?: string) {super(cause || 'Target page, context or browser has been closed');- this.name = 'TargetClosedError';}}