说明:本篇博客基于selenium 4.1.0TouchActions说明ActionChains都是selenium的一个模块,提供模拟屏幕操作的功能TouchActions...selenium.webdriver import TouchActionsfrom selenium.webdriver.common.by import Bydriver = webdriver.Chrome...x, y = 30, 50actions.scroll(x, y) # 滚动,向下向右(x, y)距离actions.scroll_from_element...(ele_input, x, y) # 滚动,以元素为起点向下向右(x, y)距离# 鼠标移动x, y = 0, 1000actions.move(x, y)...speed的速度滑动(xoffset, yoffset)距离# 拖动x, y = 30, 50actions.tap_and_hold(x, y) # 点住,在坐标