def test_there_D_history_recommend(self): """验证历史走势,使用推荐号码""" ha = HomePage_lelun(self.driver) hb = There_D_choosenumber_lelun(self.driver) hb1 = ArrangeFiveChooseNumber_lelun(self.driver) hb2 = UnionLottoChooseNumber_lelun(self.driver) hc = ConfirmLottery_lelun(self.driver) hd = ArrangeFiveConfirmLottery_lelun(self.driver) hl = Login_lelun(self.driver) ha.open() ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作 ha.Moveable_float_close() ha.fucai_3D_link() ###点击3D hb.Instruct() ##点击右上角... hb.History()###点击历史投注 mur=hb.Recommend() hb.Use_recommend()###点击使用推荐号码 hb1.Confirm_nu() # 点击确认选号 mur1=hb.Number() self.assertIn(mur,mur1) hc.submit_order_to_station_owner_button() ##点击提交给站主 #hl.new_user_login_tab() # 点击新登录 hl.login_lelun() # 输入账号,密码 hc.submit_order_to_station_owner_button() # 点击提交给站主 hc.confirm_and_pay_button() # 点击确认支付
def test_there_D_history(self): """验证历史走势""" ha = HomePage_lelun(self.driver) hb = There_D_choosenumber_lelun(self.driver) ha.open() ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作 ha.Moveable_float_close() ha.fucai_3D_link() ###点击3D hb.Instruct() ##点击右上角... hb.History()###点击历史投注 mur=hb.Charts() if mur=='': self.assertEqual('a',mur) else: print("历史走势展示正常")