鼠标操作

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

  • 将鼠标悬停到某个元素
    ele = driver.find_element(By.ID,"s-usersetting-top")
    ActionChains(driver).move_to_element(ele).perform()
    
posted @ 2022-10-04 16:23  zhq9  阅读(19)  评论(0编辑  收藏  举报