--policy
What does --policy do?
Set policy value by command line.
Usage
CLILaunch Chrome with --policy using CLI
chrome --policyPuppeteerLaunch 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)