Skip to content

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

fix(firefox): be able to launch on headful+windows (#553)

Joel Einbinder8127c890e434
diff --git a/src/server/ffPlaywright.ts b/src/server/ffPlaywright.ts
index 044e1a03d1..4d5874cc6b 100644
--- a/src/server/ffPlaywright.ts
+++ b/src/server/ffPlaywright.ts
@@ -203,6 +203,8 @@ export class FFPlaywright implements Playwright {
firefoxArguments.push('-profile', userDataDir);
if (headless)
firefoxArguments.push('-headless');
+ else
+ firefoxArguments.push('-wait-for-browser');
firefoxArguments.push(...args);
if (args.every(arg => arg.startsWith('-')))
firefoxArguments.push('about:blank');