Chrome Flags Reference

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

--crash-test

What does --crash-test do?

Causes the browser process to crash on startup.

Usage

CLILaunch Chrome with --crash-test using CLI

chrome --crash-test

PuppeteerLaunch Chrome with --crash-test using Puppeteer

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

PlaywrightLaunch Chrome with --crash-test using Playwright

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

SeleniumLaunch Chrome with --crash-test using Selenium

from selenium import webdriver

options = webdriver.ChromeOptions()
options.add_argument('--crash-test')

driver = webdriver.Chrome(options=options)