mirror of
https://github.com/microsoft/playwright.git
synced 2025-06-26 21:40:17 +00:00
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…
x
Reference in New Issue
Block a user