Chrome Flags Reference

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

--make-chrome-default

What does --make-chrome-default do?

Indicates whether Chrome should be set as the default browser during installation.

Usage

CLILaunch Chrome with --make-chrome-default using CLI

chrome --make-chrome-default

PuppeteerLaunch Chrome with --make-chrome-default using Puppeteer

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

PlaywrightLaunch Chrome with --make-chrome-default using Playwright

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

SeleniumLaunch Chrome with --make-chrome-default using Selenium

from selenium import webdriver

options = webdriver.ChromeOptions()
options.add_argument('--make-chrome-default')

driver = webdriver.Chrome(options=options)

Build Conditions

ANDROID!(CHROMEOS)MAC