from selenium import webdriver from selenium.webdriver.common.by import By driver = webdriver.Chrome() driver.get("https://member.zjtcn.com/common/login.html") hover = driver.find_element(By.CSS_SELECTOR,'.') # 动作链条 进行滑动 action = webdriver.ActionChains(driver) # 点击不释放 action.click_and_hold(hover).perform() # 移动 340 40 action.move_by_offset(85,0) action.move_by_offset(85,0) action.move_by_offset(85,0) action.move_by_offset(85,0) # 释放 action.release().perform()