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

Fixes #914
This commit is contained in:
Pavel Feldman 2020-02-10 20:35:58 -08:00 committed by GitHub
parent 49eea19477
commit 780235479e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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