Chrome Flags Reference

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

--disable-prompt-on-repost

What does --disable-prompt-on-repost do?

Normally when the user attempts to navigate to a page that was the result of a post we prompt to make sure they want to. This switch may be used to disable that check. This switch is used during automated testing.

Usage

CLILaunch Chrome with --disable-prompt-on-repost using CLI

chrome --disable-prompt-on-repost

PuppeteerLaunch Chrome with --disable-prompt-on-repost using Puppeteer

const browser = await puppeteer.launch({
  args: ['--disable-prompt-on-repost']
});

PlaywrightLaunch Chrome with --disable-prompt-on-repost using Playwright

const browser = await chromium.launch({
  args: ['--disable-prompt-on-repost']
});

SeleniumLaunch Chrome with --disable-prompt-on-repost using Selenium

from selenium import webdriver

options = webdriver.ChromeOptions()
options.add_argument('--disable-prompt-on-repost')

driver = webdriver.Chrome(options=options)