def test_previousPage_run(self):
        '''位于尾页时,点击上一页按钮'''
        # 登录本科生系统
        login = UserVer(self.driver)
        login.userLogin("collegecheck", "f")

        im = InformationManagement(self.driver)
        # 位于首页时,点击尾页按钮
        im.clickLastPage()
        sleep(2)
        # 位于尾页,点击上一页按钮
        im.clickPreviousPage()
        sleep(2)
        print("测试用例执行完成:位于尾页时,点击上一页按钮。")

        # 对当前页面截图
        imagetest = getResultImage()
        imagetest.insert_image(self.driver, "previousPage.jpg")
    def test_lastPage_run(self):
        '''位于首页时,点击尾页按钮'''
        # 登录本科生系统
        login = UserVer(self.driver)
        login.userLogin("collegecheck", "f")

        im = InformationManagement(self.driver)
        # 位于首页时,点击尾页按钮
        im.clickLastPage()
        sleep(2)
        result = im.returnFirstPage()
        print(result)
        self.assertEqual(result, "首页")
        print("测试用例执行完成:位于首页时,点击尾页按钮。")

        # 对当前页面截图
        imagetest = getResultImage()
        imagetest.insert_image(self.driver, "lastPage.jpg")