fix(firefox): bring headful window to front on launch

This commit is contained in:
Pavel Feldman 2020-02-10 20:13:22 -08:00
parent 9da0229fd3
commit 2b050d8421

View file

@ -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));