--use-wayland-explicit-grab
What does --use-wayland-explicit-grab do?
Use explicit grab when opening popup windows. See https://crbug.com/1220274
Usage
CLILaunch Chrome with --use-wayland-explicit-grab using CLI
chrome --use-wayland-explicit-grabPuppeteerLaunch Chrome with --use-wayland-explicit-grab using Puppeteer
const browser = await puppeteer.launch({
args: ['--use-wayland-explicit-grab']
});PlaywrightLaunch Chrome with --use-wayland-explicit-grab using Playwright
const browser = await chromium.launch({
args: ['--use-wayland-explicit-grab']
});SeleniumLaunch Chrome with --use-wayland-explicit-grab using Selenium
from selenium import webdriver
options = webdriver.ChromeOptions()
options.add_argument('--use-wayland-explicit-grab')
driver = webdriver.Chrome(options=options)