Chrome Flags Reference

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

--touch-events

What does --touch-events do?

Enable support for touch event feature detection.

Usage

CLILaunch Chrome with --touch-events using CLI

chrome --touch-events

PuppeteerLaunch Chrome with --touch-events using Puppeteer

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

PlaywrightLaunch Chrome with --touch-events using Playwright

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

SeleniumLaunch Chrome with --touch-events using Selenium

from selenium import webdriver

options = webdriver.ChromeOptions()
options.add_argument('--touch-events')

driver = webdriver.Chrome(options=options)

Build Conditions

LOAD_WEBUI_FROM_DISK