Chrome Flags Reference

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

--homepage

What does --homepage do?

Specifies which page will be displayed in newly-opened tabs. We need this for testing purposes so that the UI tests don't depend on what comes up for http://google.com.

Usage

CLILaunch Chrome with --homepage using CLI

chrome --homepage

PuppeteerLaunch Chrome with --homepage using Puppeteer

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

PlaywrightLaunch Chrome with --homepage using Playwright

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

SeleniumLaunch Chrome with --homepage using Selenium

from selenium import webdriver

options = webdriver.ChromeOptions()
options.add_argument('--homepage')

driver = webdriver.Chrome(options=options)