def test_choose_num_clear_button_case(self): '''选号页面清除所选比赛流程测试''' hp = HomePage_leyou(self.driver) pbcn = PaintBallChooseNumber_leyou(self.driver) sfcn = SingleFootChooseNumber_leyou(self.driver) pbc = PaintBallConfirm_leyou(self.driver) sfcl = SingleFootConfirmLottery_leyou(self.driver) cl = ConfirmLottery_leyou(self.driver) l = Login_leyou(self.driver) hp.open() hp.Moveable_float_close() hp.single_foot_link() ##点击竞足 pbcn.Play_f() # 选择玩法 pbcn.Play_rqspf() # 选择让球胜平负 aa = sfcn.jzdg_rqspf_choose(1) # 选择比赛 if aa > 0: pbcn.clear_button() # 点击清除按钮 sfcn.jzdg_rqspf_choose(1) # 选择1场比赛 pbcn.confirm_match() # 确认所选场次 sleep(2) text1 = sfcl.lottery_times_text() # 获取投注倍数文本 self.assertIn("1注5倍 ", text1) if aa == 0: text = sfcn.Play_dgp_text() self.assertIn("单关配", text)
def test_choose_num_clear_button_case(self): '''选号页面清除所选比赛流程测试''' hp = HomePage_leyou(self.driver) pbcn = PaintBallChooseNumber_leyou(self.driver) pbc = PaintBallConfirm_leyou(self.driver) cl = ConfirmLottery_leyou(self.driver) l = Login_leyou(self.driver) hp.open() hp.paintball_link() ##点击竞足 pbcn.Play_f() # 选择玩法 pbcn.Play_rqspf() # 选择让球胜平负 aa = pbcn.rqspf_choose(2) # 选择比赛 if aa == 2: pbcn.clear_button() #点击清除按钮 pbcn.rqspf_choose(3) #选择3场比赛 pbcn.confirm_match() #确认所选场次 text = pbc.Pf_pass_text() #获取过关方式文本 self.assertIn("3串1", text)