Chrome Flags Reference

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

--layer

What does --layer do?

No description available for this flag.

Usage

CLILaunch Chrome with --layer using CLI

chrome --layer

PuppeteerLaunch Chrome with --layer using Puppeteer

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

PlaywrightLaunch Chrome with --layer using Playwright

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

SeleniumLaunch Chrome with --layer using Selenium

from selenium import webdriver

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

driver = webdriver.Chrome(options=options)