--incognito
What does --incognito do?
Causes the initial browser opened to be in incognito mode. Further browsers may or may not be in incognito mode; see `IncognitoModePrefs`.
Usage
CLILaunch Chrome with --incognito using CLI
chrome --incognitoPuppeteerLaunch Chrome with --incognito using Puppeteer
const browser = await puppeteer.launch({
args: ['--incognito']
});PlaywrightLaunch Chrome with --incognito using Playwright
const browser = await chromium.launch({
args: ['--incognito']
});SeleniumLaunch Chrome with --incognito using Selenium
from selenium import webdriver
options = webdriver.ChromeOptions()
options.add_argument('--incognito')
driver = webdriver.Chrome(options=options)