def test_newuser_product_buy(self): """新用户首页理财产品验证""" "14414441414 ,qwe123" entry_page = Entry_page(self.driver, phone='14414441414') homepage = entry_page.open_login_home_page() title_text = homepage.get_product_title_text() entry_page.saveScreenshot('newuser_product_buy') self.assertEquals(title_text, "新手体验计划")
def test_home_financial(self): "登录状态-首页进入资产详情" entry_page=Entry_page(self.driver) homepage=entry_page.open_login_home_page() time.sleep(2) myInvsetRecorePage=homepage.logic_click_el_invest_img() myInvsetRecorePage.el_tv_know.click() title_text=myInvsetRecorePage.logic_get_invest_title() #截图 entry_page.saveScreenshot('home_financial') #断言 self.assertEquals(title_text,u"投资记录")