--secondary-display-layout
What does --secondary-display-layout do?
Specifies the layout mode and offsets for the secondary display for testing. The format is "<t|r|b|l>,<offset>" where t=TOP, r=RIGHT, b=BOTTOM and L=LEFT. For example, 'r,-100' means the secondary display is positioned on the right with -100 offset. (above than primary)
Usage
CLILaunch Chrome with --secondary-display-layout using CLI
chrome --secondary-display-layoutPuppeteerLaunch Chrome with --secondary-display-layout using Puppeteer
const browser = await puppeteer.launch({
args: ['--secondary-display-layout']
});PlaywrightLaunch Chrome with --secondary-display-layout using Playwright
const browser = await chromium.launch({
args: ['--secondary-display-layout']
});SeleniumLaunch Chrome with --secondary-display-layout using Selenium
from selenium import webdriver
options = webdriver.ChromeOptions()
options.add_argument('--secondary-display-layout')
driver = webdriver.Chrome(options=options)