from selenium import webdriver import time browser = webdriver.Chrome() browser.get("https://www.oschina.net/blog") time.sleep(5) for i in range(3): # 鼠标拉动滚动条 browser.execute_script("window.scrollTo(0, document.body.scrollHeight); var lenOfPage=document.body.scrollHeight; return lenOfPage") time.sleep(3)
selenium鼠标拉动滚动条
最新推荐文章于 2024-08-18 13:52:08 发布