--force-app-mode
What does --force-app-mode do?
Forces application mode. This hides certain system UI elements and forces the app to be installed if it hasn't been already.
Usage
CLILaunch Chrome with --force-app-mode using CLI
chrome --force-app-modePuppeteerLaunch Chrome with --force-app-mode using Puppeteer
const browser = await puppeteer.launch({
args: ['--force-app-mode']
});PlaywrightLaunch Chrome with --force-app-mode using Playwright
const browser = await chromium.launch({
args: ['--force-app-mode']
});SeleniumLaunch Chrome with --force-app-mode using Selenium
from selenium import webdriver
options = webdriver.ChromeOptions()
options.add_argument('--force-app-mode')
driver = webdriver.Chrome(options=options)