Skip to content

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.

fix: pass full grid url to agent (#13438)

Yury Semikhatsky212c66515240
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');