Chrome Flags Reference

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

--test-type

What does --test-type do?

Type of the current test harness ("browser" or "ui" or "gpu").

Usage

CLILaunch Chrome with --test-type using CLI

chrome --test-type

PuppeteerLaunch Chrome with --test-type using Puppeteer

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

PlaywrightLaunch Chrome with --test-type using Playwright

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

SeleniumLaunch Chrome with --test-type using Selenium

from selenium import webdriver

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

driver = webdriver.Chrome(options=options)

Build Conditions

LOAD_WEBUI_FROM_DISK