Chrome Flags Reference

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

--market-url-for-testing

What does --market-url-for-testing do?

Sets the market URL for Chrome for use in testing.

Usage

CLILaunch Chrome with --market-url-for-testing using CLI

chrome --market-url-for-testing

PuppeteerLaunch Chrome with --market-url-for-testing using Puppeteer

const browser = await puppeteer.launch({
  args: ['--market-url-for-testing']
});

PlaywrightLaunch Chrome with --market-url-for-testing using Playwright

const browser = await chromium.launch({
  args: ['--market-url-for-testing']
});

SeleniumLaunch Chrome with --market-url-for-testing using Selenium

from selenium import webdriver

options = webdriver.ChromeOptions()
options.add_argument('--market-url-for-testing')

driver = webdriver.Chrome(options=options)

Build Conditions

ANDROID