def test_haobc_rfsf_9_case(self):
     '''选择九场比赛,获取“最大场次限制8场”提示,测试流程'''
     ###点击进入双色球选号页面###
     hp = HomePage_leyou(self.driver)
     hcn = HaobcChooseNumber_leyou(self.driver)
     cl = ConfirmLottery_leyou(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()  #确认赛事
示例#2
0
 def test_single_basketball_dxf_9_case(self):
     '''选择九场比赛,获取“最大场次限制8场”提示,测试流程'''
     ###点击进入双色球选号页面###
     hp = HomePage_leyou(self.driver)
     hcn = HaobcChooseNumber_leyou(self.driver)
     sbcn = SingleBasketballChooseNumber_leyou(self.driver)
     cl = ConfirmLottery_leyou(self.driver)
     hp.open()
     hp.Moveable_float_close()
     hp.single_basketball_link()  ##点击竞篮单关
     hcn.Play_f()  #选择玩法
     hcn.Play_dxf()  #选择大小分
     aa = sbcn.jldg_sf_choose(9)  # 选择比赛
     if aa != 0 and aa != 3:
         try:
             hcn.know()
         except ElementNotVisibleException:
             print("当前场次小于8场")
         hcn.confirm_match()  #确认赛事