Chrome Flags Reference

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

--disable-notifications

What does --disable-notifications do?

Disables the Web Notification and the Push APIs.

Usage

CLILaunch Chrome with --disable-notifications using CLI

chrome --disable-notifications

PuppeteerLaunch Chrome with --disable-notifications using Puppeteer

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

PlaywrightLaunch Chrome with --disable-notifications using Playwright

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

SeleniumLaunch Chrome with --disable-notifications using Selenium

from selenium import webdriver

options = webdriver.ChromeOptions()
options.add_argument('--disable-notifications')

driver = webdriver.Chrome(options=options)