def test_single_basketball_sf_choose_num_clear_button_case(self): '''选号页面清除所选比赛流程测试''' hp = HomePage_lexiu(self.driver) hcn = HaobcChooseNumber_lexiu(self.driver) sbcn = SingleBasketballChooseNumber_lexiu(self.driver) pbc = PaintBallConfirm_lexiu(self.driver) cl = ConfirmLottery_lexiu(self.driver) l = Login_lexiu(self.driver) hp.open() hp.Moveable_float_close() hp.single_basketball_link() ##点击竞篮单关 hcn.Play_f() # 选择玩法 hcn.Play_sf() # 选择胜负 aa = sbcn.jldg_sf_choose(2) # 选择比赛 if aa > 0: hcn.clear_button()#点击清除按钮 sbcn.jldg_sf_choose(3)#选择3场比赛 hcn.confirm_match()#确认所选场次
def test_haobc_dxf_choose_num_clear_button_case(self): '''选号页面清除所选比赛流程测试''' hp = HomePage_lexiu(self.driver) hcn = HaobcChooseNumber_lexiu(self.driver) pbc = PaintBallConfirm_lexiu(self.driver) cl = ConfirmLottery_lexiu(self.driver) l = Login_lexiu(self.driver) hp.open() hp.Moveable_float_close() hp.haobc_link() ##点击竞篮 hcn.Play_f() # 选择玩法 hcn.Play_dxf() # 选择大小分 aa = hcn.sf_choose(2) # 选择比赛 if aa == 2: hcn.clear_button() #点击清除按钮 hcn.sf_choose(3) #选择3场比赛 hcn.confirm_match() #确认所选场次 text = pbc.Pf_pass_text() #获取过关方式文本 self.assertIn("3串1", text)