from selenium.webdriver.common.action_chains import ActionChains
# 识别需要悬停的元素
ele = driver.find_element_by_link_text('车神回归 极品必得')
# 鼠标移到悬停元素上
ActionChains(driver).move_to_element(ele).perform()
from selenium.webdriver.common.action_chains import ActionChains
# 识别需要悬停的元素
ele = driver.find_element_by_link_text('车神回归 极品必得')
# 鼠标移到悬停元素上
ActionChains(driver).move_to_element(ele).perform()
本文标题:2018-02-27 python 鼠标悬停
本文链接:https://www.haomeiwen.com/subject/zprmxftx.html
网友评论