# 导入selenium中的actionchains的方法
from selenium.webdriver.common.action_chains import ActionChains
#识别需要悬停的元素
ele = self.driver.find_element_by_class_name('member-top')
# 鼠标移到悬停元素上
ActionChains(self.driver).move_to_element(ele).perform()
# 导入selenium中的actionchains的方法
from selenium.webdriver.common.action_chains import ActionChains
#识别需要悬停的元素
ele = self.driver.find_element_by_class_name('member-top')
# 鼠标移到悬停元素上
ActionChains(self.driver).move_to_element(ele).perform()
本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。