Chrome Flags Reference

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

--policy-verification-key

What does --policy-verification-key do?

Replace the original verification_key with the one provided by the command line flag. Can be used only for unit tests or browser tests.

Usage

CLILaunch Chrome with --policy-verification-key using CLI

chrome --policy-verification-key

PuppeteerLaunch Chrome with --policy-verification-key using Puppeteer

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

PlaywrightLaunch Chrome with --policy-verification-key using Playwright

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

SeleniumLaunch Chrome with --policy-verification-key using Selenium

from selenium import webdriver

options = webdriver.ChromeOptions()
options.add_argument('--policy-verification-key')

driver = webdriver.Chrome(options=options)