Chrome Flags Reference

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

--window-name

What does --window-name do?

Specify the initial window user title: --window-name="My custom title"

Usage

CLILaunch Chrome with --window-name using CLI

chrome --window-name

PuppeteerLaunch Chrome with --window-name using Puppeteer

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

PlaywrightLaunch Chrome with --window-name using Playwright

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

SeleniumLaunch Chrome with --window-name using Selenium

from selenium import webdriver

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

driver = webdriver.Chrome(options=options)