--screen-info
What does --screen-info do?
Headless screen info in the format: {0,0 800x600}{800,0 600x800}. See //components/headless/screen_info/README.md for more details.
Usage
CLILaunch Chrome with --screen-info using CLI
chrome --screen-infoPuppeteerLaunch Chrome with --screen-info using Puppeteer
const browser = await puppeteer.launch({
args: ['--screen-info']
});PlaywrightLaunch Chrome with --screen-info using Playwright
const browser = await chromium.launch({
args: ['--screen-info']
});SeleniumLaunch Chrome with --screen-info using Selenium
from selenium import webdriver
options = webdriver.ChromeOptions()
options.add_argument('--screen-info')
driver = webdriver.Chrome(options=options)