from selenium import webdriver
driver=webdriver.Chrome()
driver.get(url)
js=’window.scrollTo(100,200)’ ##声明js
driver.execute_script(js) ##使用driver运行javascript
from selenium import webdriver
driver=webdriver.Chrome()
driver.get(url)
js=’window.scrollTo(100,200)’ ##声明js
driver.execute_script(js) ##使用driver运行javascript