--startup-foreground-launch
What does --startup-foreground-launch do?
Identifies Chrome instances that start in foreground mode at startup to record related metrics.
Usage
CLILaunch Chrome with --startup-foreground-launch using CLI
chrome --startup-foreground-launchPuppeteerLaunch Chrome with --startup-foreground-launch using Puppeteer
const browser = await puppeteer.launch({
args: ['--startup-foreground-launch']
});PlaywrightLaunch Chrome with --startup-foreground-launch using Playwright
const browser = await chromium.launch({
args: ['--startup-foreground-launch']
});SeleniumLaunch Chrome with --startup-foreground-launch using Selenium
from selenium import webdriver
options = webdriver.ChromeOptions()
options.add_argument('--startup-foreground-launch')
driver = webdriver.Chrome(options=options)Build Conditions
ANDROID!(CHROMEOS)MACWIN