Chrome Flags Reference

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

--noerrdialogs

What does --noerrdialogs do?

Suppresses all error dialogs when present.

Usage

CLILaunch Chrome with --noerrdialogs using CLI

chrome --noerrdialogs

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