2018-02-27 python 鼠标悬停

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 鼠标悬停)