Chrome Flags Reference

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

--test-child-process

What does --test-child-process do?

When running certain tests that spawn child processes, this switch indicates to the test framework that the current process is a child process.

Usage

CLILaunch Chrome with --test-child-process using CLI

chrome --test-child-process

PuppeteerLaunch Chrome with --test-child-process using Puppeteer

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

PlaywrightLaunch Chrome with --test-child-process using Playwright

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

SeleniumLaunch Chrome with --test-child-process using Selenium

from selenium import webdriver

options = webdriver.ChromeOptions()
options.add_argument('--test-child-process')

driver = webdriver.Chrome(options=options)