from selenium import webdriver
from selenium.webdriver.common.action_chains import ActionChains
driver=webdriver.Chrome()
hover_element=driver.find_element_by_xpath("//form/div[3]/div/ul[1]/li/a")
ActionChains(driver).move_to_element(hover_element).perform()
python+selenium move the mouse to the specified position, the drop-down content will appear
Guess you like
Origin blog.csdn.net/zhaoweiya/article/details/107022866
Recommended
Ranking