说明:本篇博客基于selenium 4.1.0TouchActions说明ActionChains都是selenium的一个模块,提供模拟屏幕操作的功能TouchActions...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)...y),并释放鼠标# 滑动xspeed, yspeed = 30, 50actions.flick(xspeed, yspeed) # 滑动,向下向右以...xoffset, yoffset, speed = 30, 50, 20actions.flick_element(ele_input, xoffset, yoffset, speed) # 在元素处滑动,向下向右以