4.滚动条.py

import time
from selenium import webdriver

driver = webdriver.Chrome()
driver.get('https://www.cnblogs.com/Neeo/articles/11002003.html')
time.sleep(3)
for i in range(1, 10):
driver.execute_script('window.scrollTo(0,{}00);'.format(i))
time.sleep(1)
posted @ 2020-02-10 19:45  干it的小张  阅读(146)  评论(0编辑  收藏  举报