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
chore: fix firefox tests after switching to context delegate (#34898)
Yury Semikhatsky954457ba9e33
diff --git a/packages/playwright-core/src/server/firefox/ffPage.ts b/packages/playwright-core/src/server/firefox/ffPage.tsindex 0ac7489c21..cefe0ecc0e 100644--- a/packages/playwright-core/src/server/firefox/ffPage.ts+++ b/packages/playwright-core/src/server/firefox/ffPage.ts@@ -555,7 +555,7 @@ export class FFPage implements PageDelegate {const context = await parent._mainContext();const result = await this._session.send('Page.adoptNode', {frameId: frame._id,- executionContextId: ((context as any)[contextDelegateSymbol] as FFExecutionContext)._executionContextId+ executionContextId: (context.delegate as FFExecutionContext)._executionContextId});if (!result.remoteObject)throw new Error('Frame has been detached.');@@ -570,5 +570,3 @@ export class FFPage implements PageDelegate {function webSocketId(frameId: string, wsid: string): string {return `${frameId}---${wsid}`;}--const contextDelegateSymbol = Symbol('delegate');