Chrome Flags Reference

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

--restart

What does --restart do?

Indicates that Chrome was restarted (e.g., after a flag change). This is used to ignore the launch when recording the Launch.Mode2 metric.

Usage

CLILaunch Chrome with --restart using CLI

chrome --restart

PuppeteerLaunch Chrome with --restart using Puppeteer

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

PlaywrightLaunch Chrome with --restart using Playwright

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

SeleniumLaunch Chrome with --restart using Selenium

from selenium import webdriver

options = webdriver.ChromeOptions()
options.add_argument('--restart')

driver = webdriver.Chrome(options=options)