code

b= ActionChains(driver)

c= driver.find_element_by_xpath("元素名")

b.click_and_hold(c).perform()

for i in range(100):
    try:
          b.move_by_offset(15,0).perform()
    except Exception:
          break #此处可以根据需求来跳出循环
    b.reset_actions()

 

 

 

 

 

 

 

相关文章:

  • 2021-12-03
  • 2021-11-02
  • 2022-12-23
  • 2022-01-22
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-10-02
  • 2022-12-23
  • 2022-02-15
  • 2022-12-23
  • 2021-07-08
相关资源
相似解决方案