--variations-state-file
What does --variations-state-file do?
Use features defined in the value. Use this flag to reproduce experiments related issues. Copy 'Command-line Variations' value from chrome://version page. Save it to a file and pass it via this flag. The value is a base64 encoded JSON format produced by `variations::VariationsCommandLine::WriteToString`.
Usage
CLILaunch Chrome with --variations-state-file using CLI
chrome --variations-state-filePuppeteerLaunch Chrome with --variations-state-file using Puppeteer
const browser = await puppeteer.launch({
args: ['--variations-state-file']
});PlaywrightLaunch Chrome with --variations-state-file using Playwright
const browser = await chromium.launch({
args: ['--variations-state-file']
});SeleniumLaunch Chrome with --variations-state-file using Selenium
from selenium import webdriver
options = webdriver.ChromeOptions()
options.add_argument('--variations-state-file')
driver = webdriver.Chrome(options=options)