Chrome Flags Reference

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

--class

What does --class do?

The same as the --class argument in X applications. Overrides the WM_CLASS window property with the given value.

Usage

CLILaunch Chrome with --class using CLI

chrome --class

PuppeteerLaunch Chrome with --class using Puppeteer

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

PlaywrightLaunch Chrome with --class using Playwright

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

SeleniumLaunch Chrome with --class using Selenium

from selenium import webdriver

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

driver = webdriver.Chrome(options=options)

Build Conditions

ANDROID!(CHROMEOS)POSIX && !IS_MAC && !BUILDFLAG(IS_CHROMEOS)