Chrome Flags Reference

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

--devtools-flags

What does --devtools-flags do?

Passes command line parameters to the DevTools front-end.

Usage

CLILaunch Chrome with --devtools-flags using CLI

chrome --devtools-flags

PuppeteerLaunch Chrome with --devtools-flags using Puppeteer

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

PlaywrightLaunch Chrome with --devtools-flags using Playwright

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

SeleniumLaunch Chrome with --devtools-flags using Selenium

from selenium import webdriver

options = webdriver.ChromeOptions()
options.add_argument('--devtools-flags')

driver = webdriver.Chrome(options=options)