Chrome Flags Reference

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

--service-sandbox-type

What does --service-sandbox-type do?

Type of sandbox to apply to the process running the service, one of the values in the next block.

Usage

CLILaunch Chrome with --service-sandbox-type using CLI

chrome --service-sandbox-type

PuppeteerLaunch Chrome with --service-sandbox-type using Puppeteer

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

PlaywrightLaunch Chrome with --service-sandbox-type using Playwright

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

SeleniumLaunch Chrome with --service-sandbox-type using Selenium

from selenium import webdriver

options = webdriver.ChromeOptions()
options.add_argument('--service-sandbox-type')

driver = webdriver.Chrome(options=options)