Chrome Flags Reference

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

--use-first-display-as-internal

What does --use-first-display-as-internal do?

Uses the 1st display in --ash-host-window-bounds as internal display. This is for debugging on linux desktop.

Usage

CLILaunch Chrome with --use-first-display-as-internal using CLI

chrome --use-first-display-as-internal

PuppeteerLaunch Chrome with --use-first-display-as-internal using Puppeteer

const browser = await puppeteer.launch({
  args: ['--use-first-display-as-internal']
});

PlaywrightLaunch Chrome with --use-first-display-as-internal using Playwright

const browser = await chromium.launch({
  args: ['--use-first-display-as-internal']
});

SeleniumLaunch Chrome with --use-first-display-as-internal using Selenium

from selenium import webdriver

options = webdriver.ChromeOptions()
options.add_argument('--use-first-display-as-internal')

driver = webdriver.Chrome(options=options)