fix(firefox): be able to launch on headful+windows
This commit is contained in:
parent
b8bb58e48b
commit
8f4364c2b5
|
|
@ -203,6 +203,8 @@ export class FFPlaywright implements Playwright {
|
||||||
firefoxArguments.push('-profile', userDataDir);
|
firefoxArguments.push('-profile', userDataDir);
|
||||||
if (headless)
|
if (headless)
|
||||||
firefoxArguments.push('-headless');
|
firefoxArguments.push('-headless');
|
||||||
|
else
|
||||||
|
firefoxArguments.push('-wait-for-browser');
|
||||||
firefoxArguments.push(...args);
|
firefoxArguments.push(...args);
|
||||||
if (args.every(arg => arg.startsWith('-')))
|
if (args.every(arg => arg.startsWith('-')))
|
||||||
firefoxArguments.push('about:blank');
|
firefoxArguments.push('about:blank');
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue