Chrome Flags Reference

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

--disable-scroll-to-text-fragment

What does --disable-scroll-to-text-fragment do?

This switch disables the ScrollToTextFragment feature.

Usage

CLILaunch Chrome with --disable-scroll-to-text-fragment using CLI

chrome --disable-scroll-to-text-fragment

PuppeteerLaunch Chrome with --disable-scroll-to-text-fragment using Puppeteer

const browser = await puppeteer.launch({
  args: ['--disable-scroll-to-text-fragment']
});

PlaywrightLaunch Chrome with --disable-scroll-to-text-fragment using Playwright

const browser = await chromium.launch({
  args: ['--disable-scroll-to-text-fragment']
});

SeleniumLaunch Chrome with --disable-scroll-to-text-fragment using Selenium

from selenium import webdriver

options = webdriver.ChromeOptions()
options.add_argument('--disable-scroll-to-text-fragment')

driver = webdriver.Chrome(options=options)

Build Conditions

LOAD_WEBUI_FROM_DISK