美文网首页我爱编程
2018-02-27 python 鼠标悬停

2018-02-27 python 鼠标悬停

作者: 柠月如风000 | 来源:发表于2018-02-27 16:00 被阅读0次

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