Chrome Flags Reference

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

--disable-auto-maximize-for-tests

What does --disable-auto-maximize-for-tests do?

Disables the auto maximize feature on ChromeOS so that a browser window always starts in normal state. This is used by tests that do not want this auto maximizing behavior.

Usage

CLILaunch Chrome with --disable-auto-maximize-for-tests using CLI

chrome --disable-auto-maximize-for-tests

PuppeteerLaunch Chrome with --disable-auto-maximize-for-tests using Puppeteer

const browser = await puppeteer.launch({
  args: ['--disable-auto-maximize-for-tests']
});

PlaywrightLaunch Chrome with --disable-auto-maximize-for-tests using Playwright

const browser = await chromium.launch({
  args: ['--disable-auto-maximize-for-tests']
});

SeleniumLaunch Chrome with --disable-auto-maximize-for-tests using Selenium

from selenium import webdriver

options = webdriver.ChromeOptions()
options.add_argument('--disable-auto-maximize-for-tests')

driver = webdriver.Chrome(options=options)

Build Conditions

CHROMEOS