Chrome Flags Reference

Chrome command line switches and startup flags for automation, headless mode, and debugging.

--no-startup-window

What does --no-startup-window do?

Does not automatically open a browser window on startup (used when launching Chrome for the purpose of hosting background apps).

Usage

CLILaunch Chrome with --no-startup-window using CLI

chrome --no-startup-window

PuppeteerLaunch Chrome with --no-startup-window using Puppeteer

const browser = await puppeteer.launch({
  args: ['--no-startup-window']
});

PlaywrightLaunch Chrome with --no-startup-window using Playwright

const browser = await chromium.launch({
  args: ['--no-startup-window']
});

SeleniumLaunch Chrome with --no-startup-window using Selenium

from selenium import webdriver

options = webdriver.ChromeOptions()
options.add_argument('--no-startup-window')

driver = webdriver.Chrome(options=options)