--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-capturePuppeteerLaunch 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)