예제 #1
0
    def test_add_poster(self, action: ElementActions):

        action.click(HomePage.关注按钮)
        action.sleep(1)
        action.capture_screen(
            u'关注截图',
            '/Users/zhangweishun/Desktop/appium-lich-master/screenshot/')
예제 #2
0
    def test_download(self, action: ElementActions):
        action.click(HomePage.下载按钮)
        action.sleep(2)

        # 断言再想想,很难想
        action.capture_screen(
            u'下载截图',
            '/Users/zhangweishun/Desktop/appium-lich-master/screenshot/')
예제 #3
0
 def test_switchShot(self,action:ElementActions):
     """
     翻转摄像头
     :return:
     """
     action.click(HomePage.拍摄按钮)
     action.sleep(1)
     action.capture_screen(u'摄像头', '/Users/zhangweishun/Desktop/appium-lich-master/screenshot/')
     action.click(ShotPage.切换摄像头)
     action.sleep(1)
     action.capture_screen(u'切换摄像头', '/Users/zhangweishun/Desktop/appium-lich-master/screenshot/')