def swipe_left(self): # 向右滑动屏幕 self.driver.swipe(self.size['width'] * random.uniform(0.89, 0.98), self.size['height'] * random.uniform(0.75, 0.89), self.size['width'] * random.uniform(0.01, 0.11), self.size['height'] * random.uniform(0.75, 0.89), random.uniform(800, 1200)) logger.debug('向左滑动屏幕')
def swipe_down(self): # 向下滑动屏幕 self.driver.swipe(self.size['width'] * random.uniform(0.55, 0.65), self.size['height'] * random.uniform(0.25, 0.35), self.size['width'] * random.uniform(0.55, 0.65), self.size['height'] * random.uniform(0.65, 0.75), random.uniform(800, 1200)) logger.debug('向下滑动屏幕')