# 導入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刪除。