Logger.info("锁屏5秒")
self.device.lock()
self.device.sleep(5)
Logger.info("解锁")
self.device.wake()
self.device.wake()
#self.device.swipe(0.3, 0.5, 0.3, 0.1, 1)
#self.device.touch_action().press(x=540,y=2170).wait(1).move_to(x=540,y=500).release().perform()
self.device.touch_action().press(x=0.5,y=0.9).wait(1).move_to(x=0.5,y=0.1).release().perform()
if not self.device.find_element_by_id('com.smartisanos.launcher:id/portraitGlView',ignoreExp=True):
#self.device.swipe(0.3, 0.5, 0.3, 0.1, 1)
self.device.touch_action().press(x=0.5,y=0.9).wait(1).move_to(x=0.5,y=0.1).release().perform()
self.device.sleep(1)
self.device.find_element_by_id('com.smartisanos.launcher:id/portraitGlView')