Chrome Flags Reference

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

--no-default-browser-check

What does --no-default-browser-check do?

Disables the default browser check. Useful for UI/browser tests where we want to avoid having the default browser info-bar displayed.

Usage

CLILaunch Chrome with --no-default-browser-check using CLI

chrome --no-default-browser-check

PuppeteerLaunch Chrome with --no-default-browser-check using Puppeteer

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

PlaywrightLaunch Chrome with --no-default-browser-check using Playwright

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

SeleniumLaunch Chrome with --no-default-browser-check using Selenium

from selenium import webdriver

options = webdriver.ChromeOptions()
options.add_argument('--no-default-browser-check')

driver = webdriver.Chrome(options=options)