Chrome Flags Reference

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

--default-country-code

What does --default-country-code do?

Default country code to be used for search engine localization.

Usage

CLILaunch Chrome with --default-country-code using CLI

chrome --default-country-code

PuppeteerLaunch Chrome with --default-country-code using Puppeteer

const browser = await puppeteer.launch({
  args: ['--default-country-code']
});

PlaywrightLaunch Chrome with --default-country-code using Playwright

const browser = await chromium.launch({
  args: ['--default-country-code']
});

SeleniumLaunch Chrome with --default-country-code using Selenium

from selenium import webdriver

options = webdriver.ChromeOptions()
options.add_argument('--default-country-code')

driver = webdriver.Chrome(options=options)

Build Conditions

ANDROID