Chrome Flags Reference

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

--policy

What does --policy do?

Set policy value by command line.

Usage

CLILaunch Chrome with --policy using CLI

chrome --policy

PuppeteerLaunch Chrome with --policy using Puppeteer

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

PlaywrightLaunch Chrome with --policy using Playwright

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

SeleniumLaunch Chrome with --policy using Selenium

from selenium import webdriver

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

driver = webdriver.Chrome(options=options)