from selenium import webdriver
from selenium.webdriver.common.action_chains import *
import time
driver = webdriver.Firefox()
driver.get('URL')
time.sleep(5)
ele = driver.find_element_by_xpath('xpath')
ActionChains(driver).move_to_element(ele).perform()
time.sleep(10)
driver.quit()
Selenium 实现鼠标悬浮
最新推荐文章于 2024-05-14 23:45:00 发布