Chrome Flags Reference

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

--validate-crx

What does --validate-crx do?

Examines a .crx for validity and prints the result.

Usage

CLILaunch Chrome with --validate-crx using CLI

chrome --validate-crx

PuppeteerLaunch Chrome with --validate-crx using Puppeteer

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

PlaywrightLaunch Chrome with --validate-crx using Playwright

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

SeleniumLaunch Chrome with --validate-crx using Selenium

from selenium import webdriver

options = webdriver.ChromeOptions()
options.add_argument('--validate-crx')

driver = webdriver.Chrome(options=options)