Chrome Flags Reference

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

--start-fullscreen

What does --start-fullscreen do?

Specifies if the browser should start in fullscreen mode, like if the user had pressed F11 right after startup.

Usage

CLILaunch Chrome with --start-fullscreen using CLI

chrome --start-fullscreen

PuppeteerLaunch Chrome with --start-fullscreen using Puppeteer

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

PlaywrightLaunch Chrome with --start-fullscreen using Playwright

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

SeleniumLaunch Chrome with --start-fullscreen using Selenium

from selenium import webdriver

options = webdriver.ChromeOptions()
options.add_argument('--start-fullscreen')

driver = webdriver.Chrome(options=options)

Build Conditions

LOAD_WEBUI_FROM_DISK