Chrome Flags Reference

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

--fail-audio-stream-creation

What does --fail-audio-stream-creation do?

Causes the AudioManager to fail creating audio streams. Used when testing various failure cases.

Usage

CLILaunch Chrome with --fail-audio-stream-creation using CLI

chrome --fail-audio-stream-creation

PuppeteerLaunch Chrome with --fail-audio-stream-creation using Puppeteer

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

PlaywrightLaunch Chrome with --fail-audio-stream-creation using Playwright

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

SeleniumLaunch Chrome with --fail-audio-stream-creation using Selenium

from selenium import webdriver

options = webdriver.ChromeOptions()
options.add_argument('--fail-audio-stream-creation')

driver = webdriver.Chrome(options=options)