Chrome Flags Reference

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

--new-window

What does --new-window do?

Launches URL in new browser window.

Usage

CLILaunch Chrome with --new-window using CLI

chrome --new-window

PuppeteerLaunch Chrome with --new-window using Puppeteer

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

PlaywrightLaunch Chrome with --new-window using Playwright

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

SeleniumLaunch Chrome with --new-window using Selenium

from selenium import webdriver

options = webdriver.ChromeOptions()
options.add_argument('--new-window')

driver = webdriver.Chrome(options=options)