Exemplo n.º 1
0
 def test_single_basketball_dxf_choose_num_clear_button_case(self):
     '''选号页面清除所选比赛流程测试'''
     hp = HomePage_leyou(self.driver)
     hcn = HaobcChooseNumber_leyou(self.driver)
     sbcn = SingleBasketballChooseNumber_leyou(self.driver)
     pbc = PaintBallConfirm_leyou(self.driver)
     cl = ConfirmLottery_leyou(self.driver)
     l = Login_leyou(self.driver)
     hp.open()
     hp.Moveable_float_close()
     hp.single_basketball_link()  ##点击竞篮单关
     hcn.Play_f()  # 选择玩法
     hcn.Play_dxf()  # 选择大小分
     aa = sbcn.jldg_sf_choose(2)  # 选择比赛
     if aa > 0:
         hcn.clear_button()  #点击清除按钮
         sbcn.jldg_sf_choose(3)  #选择3场比赛
         hcn.confirm_match()  #确认所选场次
Exemplo n.º 2
0
 def test__haobc_rfsf_choose_num_clear_button_case(self):
     '''选号页面清除所选比赛流程测试'''
     hp = HomePage_leyou(self.driver)
     hcn = HaobcChooseNumber_leyou(self.driver)
     pbc = PaintBallConfirm_leyou(self.driver)
     cl = ConfirmLottery_leyou(self.driver)
     l = Login_leyou(self.driver)
     hp.open()
     hp.Moveable_float_close()
     hp.haobc_link()  ##点击竞篮
     hcn.Play_f()  # 选择玩法
     hcn.Play_rfsf()  # 选择让分胜负
     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)