Chrome Flags Reference

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

--mute-audio

What does --mute-audio do?

Mutes audio sent to the audio device so it is not audible during automated testing.

Usage

CLILaunch Chrome with --mute-audio using CLI

chrome --mute-audio

PuppeteerLaunch Chrome with --mute-audio using Puppeteer

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

PlaywrightLaunch Chrome with --mute-audio using Playwright

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

SeleniumLaunch Chrome with --mute-audio using Selenium

from selenium import webdriver

options = webdriver.ChromeOptions()
options.add_argument('--mute-audio')

driver = webdriver.Chrome(options=options)