def test01_test(self):
screen = self.driver.get_window_size()
width=screen['width']
height=screen['height']
self.driver.swipe(width/2,height*3/4, width/2,height/4, 1000)
time.sleep(2)
self.driver.swipe(width/2,height/4, width/2,height*3/4, 1000)


↙↙↙阅读原文可查看相关链接,并与作者交流