Ejemplo n.º 1
0
 def test_haobc_rfsf_9_case(self):
     '''选择九场比赛,获取“最大场次限制8场”提示,测试流程'''
     ###点击进入双色球选号页面###
     hp=HomePage(self.driver)
     hcn=HaobcChooseNumber(self.driver)
     cl = ConfirmLottery(self.driver)
     hp.open()
     hp.Moveable_float_close()
     hp.haobc_link()##点击竞篮
     hcn.Play_f()#选择玩法
     hcn.Play_rfsf()#选择让分胜负
     aa=hcn.sf_choose(9)  # 选择比赛
     if aa!=0 and aa!=3:
         try:
             hcn.know()
         except ElementNotVisibleException:
             print("当前场次小于8场")
         hcn.confirm_match()#确认赛事
Ejemplo n.º 2
0
 def test_single_basketball_sf_9_case(self):
     '''选择九场比赛,获取“最大场次限制8场”提示,测试流程'''
     ###点击进入双色球选号页面###
     hp = HomePage(self.driver)
     hcn = HaobcChooseNumber(self.driver)
     sbcn = SingleBasketballChooseNumber(self.driver)
     cl = ConfirmLottery(self.driver)
     hp.open()
     hp.Moveable_float_close()
     hp.single_basketball_link()  ##点击竞篮单关
     hcn.Play_f()  #选择玩法
     hcn.Play_sf()  #选择胜负
     aa = sbcn.jldg_sf_choose(9)  # 选择比赛
     if aa != 0 and aa != 3:
         try:
             hcn.know()
         except ElementNotVisibleException:
             print("当前场次小于8场")
         hcn.confirm_match()  #确认赛事