Chrome Flags Reference

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

--do-not-de-elevate

What does --do-not-de-elevate do?

Do not de-elevate the browser on launch. Used after de-elevating to prevent infinite loops.

Usage

CLILaunch Chrome with --do-not-de-elevate using CLI

chrome --do-not-de-elevate

PuppeteerLaunch Chrome with --do-not-de-elevate using Puppeteer

const browser = await puppeteer.launch({
  args: ['--do-not-de-elevate']
});

PlaywrightLaunch Chrome with --do-not-de-elevate using Playwright

const browser = await chromium.launch({
  args: ['--do-not-de-elevate']
});

SeleniumLaunch Chrome with --do-not-de-elevate using Selenium

from selenium import webdriver

options = webdriver.ChromeOptions()
options.add_argument('--do-not-de-elevate')

driver = webdriver.Chrome(options=options)