引入鼠标事件包
from selenium.webdriver.common.action_chains import ActionChains
悬停某事件
xt = driver.find_element_by_xpath('/html/body/div[1]/div[2]/div/div/ul/li[4]/a')
将driver传递给actionchanins,加上动作释放perfrom
ActionChains(driver).move_to_element(xt).perform()
time.sleep(1.5)
点击事件
driver.find_element_by_xpath('/html/body/div[1]/div[2]/div/div/ul/li[4]/div/div/dl[2]/dd/a[2]').click()