def test_Dbuyed_story(self): '''我的页面test004-已购买的--故事''' try: po = HomePage(self.driver) po.clickbottom(3) po = MinePage(self.driver) po.go_buyed() po.go_buyed_story() print('操作成功!') except: po = Operation(self.driver) po.screenShot() raise LocateError('定位失败,请核查原因!')
def test_Cbuyed_notice(self): '''我的页面test003-已购买的--课程''' try: po = HomePage(self.driver) po.clickbottom(3) po = MinePage(self.driver) po.go_buyed() po.go_buyed_course() print('操作成功!') except: po = Operation(self.driver) po.screenShot() raise LocateError('定位失败,请核查原因!')