Beispiel #1
0
 def swipeUd(self, ys, ye, x):
     logging.info('========swipe ud========')
     l = BaseView.get_size(self)
     y1 = int(l[1] * ys)
     x1 = int(l[0] * x)
     y2 = int(l[1] * ye)
     self.driver.swipe(x1, y1, x1, y2, 1000)  # 上/下滑动
Beispiel #2
0
 def swipeLr(self, xs, xe, y):
     logging.info('========swipe lr========')
     l = BaseView.get_size(self)
     x1 = int(l[0] * xs)
     y1 = int(l[1] * y)
     x2 = int(l[0] * xe)
     self.driver.swipe(x1, y1, x2, y1, 1000)  # 左/右滑动