Appium滑动屏幕_appium 滑动屏幕-CSDN博客

网站介绍:文章浏览阅读346次。def swipeUp(driver, t=500, n=1):‘’‘向上滑动屏幕’’’l = driver.get_window_size()x1 = l[‘width’] * 0.5y1 = l[‘height’] * 0.75y2 = l[‘height’] * 0.25for i in range(n):driver.swipe(x1, y1, x1, y2, t)def swipeDown(driver, t=500, n=1):‘’‘向下滑动屏幕’’’l = driver.g_appium 滑动屏幕