diff --git a/packages/playwright-core/src/grid/gridServer.ts b/packages/playwright-core/src/grid/gridServer.ts index 1247cda680..ace6f1da58 100644 --- a/packages/playwright-core/src/grid/gridServer.ts +++ b/packages/playwright-core/src/grid/gridServer.ts @@ -332,7 +332,7 @@ export class GridServer { const initPromise = Promise.resolve() .then(() => this._factory.launch({ agentId: agent.agentId, - gridURL: this._server.urlPrefix(), + gridURL: this.urlPrefix(), playwrightVersion: getPlaywrightVersion(), })).then(() => { this._log('created');