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(close): actually mark the page as closing (#2798)
Dmitry Gozmanff1fe3ac39ce
diff --git a/src/page.ts b/src/page.tsindex dd5db2db26..99a45004f5 100644--- a/src/page.ts+++ b/src/page.ts@@ -480,6 +480,7 @@ export class Page extends EventEmitter {return;const runBeforeUnload = !!options && !!options.runBeforeUnload;if (this._closedState !== 'closing') {+ this._closedState = 'closing';assert(!this._disconnected, 'Protocol error: Connection closed. Most likely the page has been closed.');await this._delegate.closePage(runBeforeUnload);}