Chrome Flags Reference

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

--enable-field-trial-config

What does --enable-field-trial-config do?

Enable field trial tests configured in fieldtrial_testing_config.json. If the "disable_fieldtrial_testing_config" GN flag is set to true, then this switch is a no-op. Otherwise, for non-Chrome branded builds, the testing config is already applied by default, unless the "--disable-field-trial-config", "--force-fieldtrials", and/or "--variations-server-url" switches are passed. It is however possible to apply the testing config as well as specify additional field trials (using "--force-fieldtrials") by using this switch. For Chrome-branded builds, the testing config is not enabled by default, so this switch is required to enable it.

Usage

CLILaunch Chrome with --enable-field-trial-config using CLI

chrome --enable-field-trial-config

PuppeteerLaunch Chrome with --enable-field-trial-config using Puppeteer

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

PlaywrightLaunch Chrome with --enable-field-trial-config using Playwright

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

SeleniumLaunch Chrome with --enable-field-trial-config using Selenium

from selenium import webdriver

options = webdriver.ChromeOptions()
options.add_argument('--enable-field-trial-config')

driver = webdriver.Chrome(options=options)