📜  python selenium 向下滚动 - Python 代码示例

📅  最后修改于: 2022-03-11 14:46:46.851000             🧑  作者: Mango

代码示例1
from selenium import webdriver
import time

browser = webdriver.Firefox()
browser.get("https://en.wikipedia.org")
browser.execute_script("window.scrollTo(0,document.body.scrollHeight)")
time.sleep(3)
browser.close()