Chrome Flags Reference

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

--auto

What does --auto do?

The values the kTouchEventFeatureDetection switch may have, as in --touch-events=disabled. auto: enabled at startup when an attached touchscreen is present.

Usage

CLILaunch Chrome with --auto using CLI

chrome --auto

PuppeteerLaunch Chrome with --auto using Puppeteer

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

PlaywrightLaunch Chrome with --auto using Playwright

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

SeleniumLaunch Chrome with --auto using Selenium

from selenium import webdriver

options = webdriver.ChromeOptions()
options.add_argument('--auto')

driver = webdriver.Chrome(options=options)

Build Conditions

LOAD_WEBUI_FROM_DISK