fix(firefox): bring headful window to front on launch (#923)
Fixes #914
This commit is contained in:
parent
49eea19477
commit
780235479e
|
|
@ -177,10 +177,12 @@ export class Firefox implements BrowserType {
|
|||
throw new Error('Use the port parameter instead of -juggler argument');
|
||||
|
||||
const firefoxArguments = ['-no-remote'];
|
||||
if (headless)
|
||||
if (headless) {
|
||||
firefoxArguments.push('-headless');
|
||||
else
|
||||
} else {
|
||||
firefoxArguments.push('-wait-for-browser');
|
||||
firefoxArguments.push('-foreground');
|
||||
}
|
||||
|
||||
firefoxArguments.push(`-profile`, userDataDir);
|
||||
firefoxArguments.push('-juggler', String(port));
|
||||
|
|
|
|||
Loading…
Reference in a new issue