--touch-devices
What does --touch-devices do?
Tells chrome to interpret events from these devices as touch events. Only available with XInput 2 (i.e. X server 1.8 or above). The id's of the devices can be retrieved from 'xinput list'.
Usage
CLILaunch Chrome with --touch-devices using CLI
chrome --touch-devicesPuppeteerLaunch Chrome with --touch-devices using Puppeteer
const browser = await puppeteer.launch({
args: ['--touch-devices']
});PlaywrightLaunch Chrome with --touch-devices using Playwright
const browser = await chromium.launch({
args: ['--touch-devices']
});SeleniumLaunch Chrome with --touch-devices using Selenium
from selenium import webdriver
options = webdriver.ChromeOptions()
options.add_argument('--touch-devices')
driver = webdriver.Chrome(options=options)Build Conditions
LINUX || IS_CHROMEOS