--noerrdialogs
What does --noerrdialogs do?
Suppresses all error dialogs when present.
Usage
CLILaunch Chrome with --noerrdialogs using CLI
chrome --noerrdialogsPuppeteerLaunch Chrome with --noerrdialogs using Puppeteer
const browser = await puppeteer.launch({
args: ['--noerrdialogs']
});PlaywrightLaunch Chrome with --noerrdialogs using Playwright
const browser = await chromium.launch({
args: ['--noerrdialogs']
});SeleniumLaunch Chrome with --noerrdialogs using Selenium
from selenium import webdriver
options = webdriver.ChromeOptions()
options.add_argument('--noerrdialogs')
driver = webdriver.Chrome(options=options)