Chrome Flags Reference

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

--enable-longpress-drag-selection

What does --enable-longpress-drag-selection do?

Enable drag manipulation of longpress-triggered text selections.

Usage

CLILaunch Chrome with --enable-longpress-drag-selection using CLI

chrome --enable-longpress-drag-selection

PuppeteerLaunch Chrome with --enable-longpress-drag-selection using Puppeteer

const browser = await puppeteer.launch({
  args: ['--enable-longpress-drag-selection']
});

PlaywrightLaunch Chrome with --enable-longpress-drag-selection using Playwright

const browser = await chromium.launch({
  args: ['--enable-longpress-drag-selection']
});

SeleniumLaunch Chrome with --enable-longpress-drag-selection using Selenium

from selenium import webdriver

options = webdriver.ChromeOptions()
options.add_argument('--enable-longpress-drag-selection')

driver = webdriver.Chrome(options=options)

Build Conditions

LOAD_WEBUI_FROM_DISKANDROID