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(firefox): race between markAsError and Page.ready (#6976)
Dmitry Gozmanff3f951dc8a4
diff --git a/src/server/firefox/ffPage.ts b/src/server/firefox/ffPage.tsindex b4f5bef60a..3a79dfe55f 100644--- a/src/server/firefox/ffPage.ts+++ b/src/server/firefox/ffPage.ts@@ -102,6 +102,8 @@ export class FFPage implements PageDelegate {});this._session.once('Page.ready', async () => {await this._page.initOpener(this._opener);+ if (this._initializationFailed)+ return;// Note: it is important to call |reportAsNew| before resolving pageOrError promise,// so that anyone who awaits pageOrError got a ready and reported page.this._initializedPage = this._page;