Chrome Flags Reference

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

--surface

What does --surface do?

No description available for this flag.

Usage

CLILaunch Chrome with --surface using CLI

chrome --surface

PuppeteerLaunch Chrome with --surface using Puppeteer

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

PlaywrightLaunch Chrome with --surface using Playwright

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

SeleniumLaunch Chrome with --surface using Selenium

from selenium import webdriver

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

driver = webdriver.Chrome(options=options)