--init-isolate-as-foreground
What does --init-isolate-as-foreground do?
Specifies that the main-thread Isolate should initialize in foreground mode. If not specified, the the Isolate will start in background mode for extension processes and foreground mode otherwise.
Usage
CLILaunch Chrome with --init-isolate-as-foreground using CLI
chrome --init-isolate-as-foregroundPuppeteerLaunch Chrome with --init-isolate-as-foreground using Puppeteer
const browser = await puppeteer.launch({
args: ['--init-isolate-as-foreground']
});PlaywrightLaunch Chrome with --init-isolate-as-foreground using Playwright
const browser = await chromium.launch({
args: ['--init-isolate-as-foreground']
});SeleniumLaunch Chrome with --init-isolate-as-foreground using Selenium
from selenium import webdriver
options = webdriver.ChromeOptions()
options.add_argument('--init-isolate-as-foreground')
driver = webdriver.Chrome(options=options)