# 找到滚动条 drag_01 = self.wait_clickable_element((By.XPATH, '//*[@id="pane-contract"]/div/div[3]/div')) # 找到滚动条 # 控制滚动条的行为,每次向y轴(及向下)移动10个单位 ActionChains(self.driver).drag_and_drop_by_offset(drag_01, 0, 250).perform()