Chrome Flags Reference

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

--product-version

What does --product-version do?

Outputs the product version information and quit. Used as an internal api to detect the installed version of Chrome on Linux.

Usage

CLILaunch Chrome with --product-version using CLI

chrome --product-version

PuppeteerLaunch Chrome with --product-version using Puppeteer

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

PlaywrightLaunch Chrome with --product-version using Playwright

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

SeleniumLaunch Chrome with --product-version using Selenium

from selenium import webdriver

options = webdriver.ChromeOptions()
options.add_argument('--product-version')

driver = webdriver.Chrome(options=options)