--force-fieldtrials
What does --force-fieldtrials do?
This option can be used to force field trials when testing changes locally. The argument is a list of name and value pairs, separated by slashes. If a trial name is prefixed with an asterisk, that trial will start activated. For example, the following argument defines two trials, with the second one activated: "GoogleNow/Enable/*MaterialDesignNTP/Default/" This option can also be used by the browser process to send the list of trials to a non-browser process, using the same format. See FieldTrialList::CreateTrialsFromString() in field_trial.h for details.
Usage
CLILaunch Chrome with --force-fieldtrials using CLI
chrome --force-fieldtrialsPuppeteerLaunch Chrome with --force-fieldtrials using Puppeteer
const browser = await puppeteer.launch({
args: ['--force-fieldtrials']
});PlaywrightLaunch Chrome with --force-fieldtrials using Playwright
const browser = await chromium.launch({
args: ['--force-fieldtrials']
});SeleniumLaunch Chrome with --force-fieldtrials using Selenium
from selenium import webdriver
options = webdriver.ChromeOptions()
options.add_argument('--force-fieldtrials')
driver = webdriver.Chrome(options=options)