首页 > 其他分享 >鼠标操作

鼠标操作

时间:2022-10-04 16:35:50浏览次数:51  
标签:鼠标 ActionChains driver element 操作 ele

使用鼠标模拟操作需要倒入from selenium.webdriver.common.action_chains import ActionChains

  • 将鼠标悬停到某个元素
    ele = driver.find_element(By.ID,"s-usersetting-top")
    ActionChains(driver).move_to_element(ele).perform()
    

标签:鼠标,ActionChains,driver,element,操作,ele
From: https://www.cnblogs.com/py-zhq/p/16753965.html

相关文章