Chrome Flags Reference

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

--ignore-bad-message-for-testing

What does --ignore-bad-message-for-testing do?

The switch to ignore bad mojo message reports. Only for testing.

Usage

CLILaunch Chrome with --ignore-bad-message-for-testing using CLI

chrome --ignore-bad-message-for-testing

PuppeteerLaunch Chrome with --ignore-bad-message-for-testing using Puppeteer

const browser = await puppeteer.launch({
  args: ['--ignore-bad-message-for-testing']
});

PlaywrightLaunch Chrome with --ignore-bad-message-for-testing using Playwright

const browser = await chromium.launch({
  args: ['--ignore-bad-message-for-testing']
});

SeleniumLaunch Chrome with --ignore-bad-message-for-testing using Selenium

from selenium import webdriver

options = webdriver.ChromeOptions()
options.add_argument('--ignore-bad-message-for-testing')

driver = webdriver.Chrome(options=options)