Chrome Flags Reference

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

--enable-automation

What does --enable-automation do?

Enable indication that browser is controlled by automation.

Usage

CLILaunch Chrome with --enable-automation using CLI

chrome --enable-automation

PuppeteerLaunch Chrome with --enable-automation using Puppeteer

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

PlaywrightLaunch Chrome with --enable-automation using Playwright

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

SeleniumLaunch Chrome with --enable-automation using Selenium

from selenium import webdriver

options = webdriver.ChromeOptions()
options.add_argument('--enable-automation')

driver = webdriver.Chrome(options=options)

Build Conditions

LOAD_WEBUI_FROM_DISKANDROID