--screen-config
What does --screen-config do?
Specifies the initial screen configuration, or state of all displays, for FakeDisplayDelegate, see class for format details.
Usage
CLILaunch Chrome with --screen-config using CLI
chrome --screen-configPuppeteerLaunch Chrome with --screen-config using Puppeteer
const browser = await puppeteer.launch({
args: ['--screen-config']
});PlaywrightLaunch Chrome with --screen-config using Playwright
const browser = await chromium.launch({
args: ['--screen-config']
});SeleniumLaunch Chrome with --screen-config using Selenium
from selenium import webdriver
options = webdriver.ChromeOptions()
options.add_argument('--screen-config')
driver = webdriver.Chrome(options=options)