selenium 鼠标悬停

code

from selenium.webdriver.common.action_chains import ActionChains
from selenium import webdriver

driver = webdriver.Chrome()
asleep(driver)
driver.get("https://pan.baidu.com/")
driver.maximize_window()

x=driver.find_elements_by_xpath(".//dd[@_cmd_installed='1']")
ActionChains(driver).move_to_element(x[90]).perform()

 

 

 

 

 

 

 

 

 

 

 

posted @ 2020-12-23 21:36  anobscureretreat  阅读(131)  评论(0编辑  收藏  举报