Chrome Flags Reference

Chrome command line switches and startup flags for automation, headless mode, and debugging.

--force-webxr-runtime

What does --force-webxr-runtime do?

Forcibly enable and select the specified runtime for webxr. Note that this provides an alternative means of enabling a runtime, and will also functionally disable all other runtimes.

Usage

CLILaunch Chrome with --force-webxr-runtime using CLI

chrome --force-webxr-runtime

PuppeteerLaunch Chrome with --force-webxr-runtime using Puppeteer

const browser = await puppeteer.launch({
  args: ['--force-webxr-runtime']
});

PlaywrightLaunch Chrome with --force-webxr-runtime using Playwright

const browser = await chromium.launch({
  args: ['--force-webxr-runtime']
});

SeleniumLaunch Chrome with --force-webxr-runtime using Selenium

from selenium import webdriver

options = webdriver.ChromeOptions()
options.add_argument('--force-webxr-runtime')

driver = webdriver.Chrome(options=options)

Build Conditions

LOAD_WEBUI_FROM_DISK