--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 --classPuppeteerLaunch 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)