Chrome Flags Reference

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

--device-scale-factor

What does --device-scale-factor do?

Device scale factor passed to certain processes like renderers, etc.

Usage

CLILaunch Chrome with --device-scale-factor using CLI

chrome --device-scale-factor

PuppeteerLaunch Chrome with --device-scale-factor using Puppeteer

const browser = await puppeteer.launch({
  args: ['--device-scale-factor']
});

PlaywrightLaunch Chrome with --device-scale-factor using Playwright

const browser = await chromium.launch({
  args: ['--device-scale-factor']
});

SeleniumLaunch Chrome with --device-scale-factor using Selenium

from selenium import webdriver

options = webdriver.ChromeOptions()
options.add_argument('--device-scale-factor')

driver = webdriver.Chrome(options=options)

Build Conditions

LOAD_WEBUI_FROM_DISKANDROIDWIN