Chrome Flags Reference

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

--window-position

What does --window-position do?

Specify the initial window position: --window-position=x,y

Usage

CLILaunch Chrome with --window-position using CLI

chrome --window-position

PuppeteerLaunch Chrome with --window-position using Puppeteer

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

PlaywrightLaunch Chrome with --window-position using Playwright

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

SeleniumLaunch Chrome with --window-position using Selenium

from selenium import webdriver

options = webdriver.ChromeOptions()
options.add_argument('--window-position')

driver = webdriver.Chrome(options=options)