Chrome Flags Reference

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

--disable-presentation-api

What does --disable-presentation-api do?

Disables the Presentation API.

Usage

CLILaunch Chrome with --disable-presentation-api using CLI

chrome --disable-presentation-api

PuppeteerLaunch Chrome with --disable-presentation-api using Puppeteer

const browser = await puppeteer.launch({
  args: ['--disable-presentation-api']
});

PlaywrightLaunch Chrome with --disable-presentation-api using Playwright

const browser = await chromium.launch({
  args: ['--disable-presentation-api']
});

SeleniumLaunch Chrome with --disable-presentation-api using Selenium

from selenium import webdriver

options = webdriver.ChromeOptions()
options.add_argument('--disable-presentation-api')

driver = webdriver.Chrome(options=options)