标签:处理 doc exe from web com import into rom
from selenium import webdriver
import time
driver = webdriver.Chrome()
driver.get("https://www.baidu.com")
driver.set_window_size(300,400)
print(driver.name)
# 滚动到底部
js = "window.scrollTo(0,document.body.scrollHeight)"
driver.execute_script(js)
# 滚动到顶部
js = "window.scrollTo(0,0)"
driver.execute_script(js)
time.sleep(3)
# 聚焦元素
target = driver.find_element_by_link_text("抗击肺炎")
driver.execute_script("arguments[0].scrollIntoView();",target)
标签:处理 doc exe from web com import into rom
原文地址:https://www.cnblogs.com/Tofuir-miss/p/13151560.html