Chrome Flags Reference

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

--pull-to-refresh

What does --pull-to-refresh do?

Enables or disables pull-to-refresh gesture in response to vertical overscroll. Set the value to '0' to disable the feature, set to '1' to enable it for both touchpad and touchscreen, and set to '2' to enable it only for touchscreen. Defaults to disabled.

Usage

CLILaunch Chrome with --pull-to-refresh using CLI

chrome --pull-to-refresh

PuppeteerLaunch Chrome with --pull-to-refresh using Puppeteer

const browser = await puppeteer.launch({
  args: ['--pull-to-refresh']
});

PlaywrightLaunch Chrome with --pull-to-refresh using Playwright

const browser = await chromium.launch({
  args: ['--pull-to-refresh']
});

SeleniumLaunch Chrome with --pull-to-refresh using Selenium

from selenium import webdriver

options = webdriver.ChromeOptions()
options.add_argument('--pull-to-refresh')

driver = webdriver.Chrome(options=options)

Build Conditions

LOAD_WEBUI_FROM_DISK