Chrome Flags Reference

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

--browser-startup-dialog

What does --browser-startup-dialog do?

Causes the browser process to display a dialog on launch.

Usage

CLILaunch Chrome with --browser-startup-dialog using CLI

chrome --browser-startup-dialog

PuppeteerLaunch Chrome with --browser-startup-dialog using Puppeteer

const browser = await puppeteer.launch({
  args: ['--browser-startup-dialog']
});

PlaywrightLaunch Chrome with --browser-startup-dialog using Playwright

const browser = await chromium.launch({
  args: ['--browser-startup-dialog']
});

SeleniumLaunch Chrome with --browser-startup-dialog using Selenium

from selenium import webdriver

options = webdriver.ChromeOptions()
options.add_argument('--browser-startup-dialog')

driver = webdriver.Chrome(options=options)