Chrome Flags Reference

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

--do-not-create-nsapp-for-tests

What does --do-not-create-nsapp-for-tests do?

Skips initializing the shares NSApplication instance in ChromeTestSuite.

Usage

CLILaunch Chrome with --do-not-create-nsapp-for-tests using CLI

chrome --do-not-create-nsapp-for-tests

PuppeteerLaunch Chrome with --do-not-create-nsapp-for-tests using Puppeteer

const browser = await puppeteer.launch({
  args: ['--do-not-create-nsapp-for-tests']
});

PlaywrightLaunch Chrome with --do-not-create-nsapp-for-tests using Playwright

const browser = await chromium.launch({
  args: ['--do-not-create-nsapp-for-tests']
});

SeleniumLaunch Chrome with --do-not-create-nsapp-for-tests using Selenium

from selenium import webdriver

options = webdriver.ChromeOptions()
options.add_argument('--do-not-create-nsapp-for-tests')

driver = webdriver.Chrome(options=options)

Build Conditions

MAC