Chrome Flags Reference

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

--force-fieldtrial-params

What does --force-fieldtrial-params do?

This option can be used to force parameters of field trials when testing changes locally. The argument is a param list of (key, value) pairs prefixed by an associated (trial, group) pair. You specify the param list for multiple (trial, group) pairs with a comma separator. Example: "Trial1.Group1:k1/v1/k2/v2,Trial2.Group2:k3/v3/k4/v4" Trial names, groups names, parameter names, and value should all be URL escaped for all non-alphanumeric characters.

Usage

CLILaunch Chrome with --force-fieldtrial-params using CLI

chrome --force-fieldtrial-params

PuppeteerLaunch Chrome with --force-fieldtrial-params using Puppeteer

const browser = await puppeteer.launch({
  args: ['--force-fieldtrial-params']
});

PlaywrightLaunch Chrome with --force-fieldtrial-params using Playwright

const browser = await chromium.launch({
  args: ['--force-fieldtrial-params']
});

SeleniumLaunch Chrome with --force-fieldtrial-params using Selenium

from selenium import webdriver

options = webdriver.ChromeOptions()
options.add_argument('--force-fieldtrial-params')

driver = webdriver.Chrome(options=options)