--display
What does --display do?
Which X11 display to connect to. Emulates the GTK+ "--display=" command line argument. In use only with Ozone/X11.
Usage
CLILaunch Chrome with --display using CLI
chrome --displayPuppeteerLaunch Chrome with --display using Puppeteer
const browser = await puppeteer.launch({
args: ['--display']
});PlaywrightLaunch Chrome with --display using Playwright
const browser = await chromium.launch({
args: ['--display']
});SeleniumLaunch Chrome with --display using Selenium
from selenium import webdriver
options = webdriver.ChromeOptions()
options.add_argument('--display')
driver = webdriver.Chrome(options=options)Build Conditions
LINUX || IS_CHROMEOS