Chrome Flags Reference

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

--auto-reject-capture

What does --auto-reject-capture do?

This flag makes Chrome auto-reject requests capture a tab/window/screen.

Usage

CLILaunch Chrome with --auto-reject-capture using CLI

chrome --auto-reject-capture

PuppeteerLaunch Chrome with --auto-reject-capture using Puppeteer

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

PlaywrightLaunch Chrome with --auto-reject-capture using Playwright

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

SeleniumLaunch Chrome with --auto-reject-capture using Selenium

from selenium import webdriver

options = webdriver.ChromeOptions()
options.add_argument('--auto-reject-capture')

driver = webdriver.Chrome(options=options)