首页 > 其他 > 详细

鼠标悬停

时间:2015-07-09 00:36:14      阅读:204      评论:0      收藏:0      [点我收藏+]
>>> from selenium.webdriver.common.action_chains import ActionChains
>>> setting = driver.find_element_by_xpath("//div[@id=‘u1‘]/a[7]")
>>> ActionChains(driver).move_to_element(setting).perform()
>>> driver.find_element_by_class_name("setpref")
<selenium.webdriver.remote.webelement.WebElement object at 0x7fd7070589d0>
>>> driver.find_element_by_class_name("setpref").click()

 

鼠标悬停

ActionChains(driver).move_to_element(element).perform()

鼠标悬停

原文:http://www.cnblogs.com/isister/p/4631612.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!