79651033

Date: 2025-06-03 10:04:05
Score: 1
Natty:
Report link

Use the --enable-smooth-scrolling flag with add_argument:

from selenium import webdriver
# Create Chrome options
options = webdriver.ChromeOptions()
# Enable Smooth Scrolling via command-line switch
options.add_argument("--enable-smooth-scrolling")
# Initialize WebDriver with options
driver = webdriver.Chrome(options=options)

--enable-smooth-scrollingmust be passed using add_argument not add_experimental_option, because it's a command-line switch rather than a Chrome experimental option.

Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: bdi