最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

How can I enable smooth scrolling when using Selenium with Chrome? - Stack Overflow

programmeradmin0浏览0评论

In Selenium, using the WebDriver, I can set experimental options as follows:

options = webdriver.ChromeOptions()
options.add_experimental_option('excludeSwitches', ['enable-logging'])
driver = webdriver.Chrome(options=options)

In Chrome version 132, there is an experimental option to enable Smooth Scrolling. How can I enable this option in Selenium?

Smooth scrolling is not enabled by default in Chrome.

发布评论

评论列表(0)

  1. 暂无评论