Beispiel #1
0
 def setUp(cls):
     """启动应用"""
     cls.login = TloginPage()
     cls.home = ThomePage()
     cls.user = TuserCenterPage()
     cls.setting = SettingPage()
     cls.question_feedback = QuestionFeedback()
Beispiel #2
0
 def setUp(cls):
     """启动应用"""
     cls.login = TloginPage()
     cls.home = ThomePage()
     cls.detail = VanclassDetailPage()
     cls.van = VanclassPage()
     cls.st = StDetailPage()
 def setUp(cls):
     """启动应用"""
     cls.login = TloginPage()
     cls.home = ThomePage()
     cls.user = TuserCenterPage()
     cls.user_info = UserInfoPage()
     cls.screen_shot = ScreenShot()
Beispiel #4
0
 def setUp(cls):
     """启动应用"""
     cls.login = TloginPage()
     cls.home = ThomePage()
     cls.user = TuserCenterPage()
     cls.setting = SettingPage()
     cls.protocol = ProtocolPage()
Beispiel #5
0
 def setUp(cls):
     """启动应用"""
     cls.login = TloginPage()
     cls.home = ThomePage()
     cls.user = TuserCenterPage()
     cls.setting = SettingPage()
     cls.privacy_clause = PrivacyPage()
Beispiel #6
0
 def setUp(cls):
     """启动应用"""
     cls.login = TloginPage()
     cls.home = ThomePage()
     cls.user = TuserCenterPage()
     cls.user_info = UserInfoPage()
     cls.phone_reset = PhoneReset()
 def setUp(cls):
     """启动应用"""
     cls.login = TloginPage()
     cls.home = ThomePage()
     cls.user = TuserCenterPage()
     cls.question = QuestionBankPage()
     cls.filter = FilterPage()
 def setUp(cls):
     """启动应用"""
     cls.login = TloginPage()
     cls.home = ThomePage()
     cls.question = QuestionBankPage()
     cls.basket = QuestionBasketPage()
     cls.detail = QuestionDetailPage()
 def setUp(cls):
     """启动应用"""
     cls.login = TloginPage()
     cls.home = ThomePage()
     cls.detail = HwDetailPage()
     cls.speak = SpokenDetailPage()
     cls.homework = ReleasePage()
Beispiel #10
0
 def setUp(cls):
     """启动应用"""
     cls.login = TloginPage()
     cls.home = ThomePage()
     cls.detail = VanclassDetailPage()
     cls.v_detail = HwDetailPage()
     cls.van = VanclassPage()
     cls.speak = SpokenDetailPage()
Beispiel #11
0
 def setUp(cls):
     """启动应用"""
     cls.login = TloginPage()
     cls.home = ThomePage()
     cls.question = QuestionBankPage()
     cls.detail = QuestionDetailPage()
     cls.game = GamesPage()
     cls.filter = FilterPage()
Beispiel #12
0
 def setUp(cls):
     """启动应用"""
     cls.login = TloginPage()
     cls.home = ThomePage()
     cls.detail = VanclassDetailPage()
     cls.van = VanclassPage()
     cls.group = GroupDetailPage()
     cls.release = ReleasePage()
 def setUp(cls):
     """启动应用"""
     cls.login = TloginPage()
     cls.home = ThomePage()
     cls.question = QuestionBankPage()
     cls.paper = PaperDetailPage()
     cls.game = GamesPage()
     cls.change_image = ChangeImage()
Beispiel #14
0
 def setUp(cls):
     """启动应用"""
     cls.login = TloginPage()
     cls.home = ThomePage()
     cls.v_detail = VanclassDetailPage()
     cls.van = VanclassPage()
     cls.detail = HwDetailPage()
     cls.game = GamesPage()
 def setUp(cls):
     """启动应用"""
     cls.login = TloginPage()
     cls.home = ThomePage()
     cls.user = TuserCenterPage()
     cls.question = QuestionBankPage()
     cls.detail = QuestionDetailPage()
     cls.basket = QuestionBasketPage()
     cls.collect = CollectionPage()
 def setUp(cls):
     """启动应用"""
     cls.login = TloginPage()
     cls.home = ThomePage()
     cls.user = TuserCenterPage()
     cls.user_info = UserInfoPage()
     cls.change_image = ChangeImage()
     cls.screen_shot = ScreenShot()
     cls.base_page = BasePage()
Beispiel #17
0
 def setUp(cls):
     """启动应用"""
     cls.login = TloginPage()
     cls.home = ThomePage()
     cls.user = TuserCenterPage()
     cls.filter = FilterPage()
     cls.question = QuestionBankPage()
     cls.recommend = RecommendPage()
     cls.release = ReleasePage()
 def setUp(cls):
     """启动应用"""
     cls.login = TloginPage()
     cls.home = ThomePage()
     cls.user = TuserCenterPage()
     cls.filter = FilterPage()
     cls.recommend = RecommendPage()
     cls.question = QuestionBankPage()
     cls.basket = QuestionBasketPage()
     cls.detail = QuestionDetailPage()
    def logout(self):
        """退出登录"""
        self.driver.implicitly_wait(2)
        ThomePage().click_tab_profile()  # 进入首页后点击‘个人中心’按钮
        TuserCenterPage().click_setting()  # 点击设置按钮
        self.logout_button()

        self.driver.implicitly_wait(2)
        if TloginPage().wait_check_page():
            print('退出登录成功!!!')
        else:
            print(' 退出登录失败 ')
Beispiel #20
0
 def setUp(cls):
     """启动应用"""
     cls.login = TloginPage()
     cls.home = ThomePage()
     cls.question = QuestionBankPage()
 def setUp(cls):
     """启动应用"""
     cls.login = TloginPage()
     cls.home = ThomePage()
     cls.release = ReleasePage()
     cls.paper = PaperDetailPage()
 def setUp(cls):
     """启动应用"""
     cls.login = TloginPage()
     cls.home = ThomePage()
Beispiel #23
0
 def setUp(cls):
     """启动应用"""
     cls.login = TloginPage()
     cls.home = ThomePage()
     cls.release = ReleasePage()
     cls.detail = HwDetailPage()