标签:
>>> 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