Esempio n. 1
0
 def test_haobc_dxf_9_case(self):
     '''选择九场比赛,获取“最大场次限制8场”提示,测试流程'''
     ###点击进入双色球选号页面###
     hp = HomePage_lexiu(self.driver)
     hcn = HaobcChooseNumber_lexiu(self.driver)
     cl = ConfirmLottery_lexiu(self.driver)
     hp.open()
     hp.Moveable_float_close()
     hp.haobc_link()  ##点击竞篮
     hcn.Play_f()  #选择玩法
     hcn.Play_dxf()  #选择大小分
     aa = hcn.sf_choose(9)  # 选择比赛
     if aa != 0 and aa != 3:
         try:
             hcn.know()
         except ElementNotVisibleException:
             print("当前场次小于8场")
         hcn.confirm_match()  #确认赛事
 def test_single_basketball_sf_9_case(self):
     '''选择九场比赛,获取“最大场次限制8场”提示,测试流程'''
     ###点击进入双色球选号页面###
     hp=HomePage_lexiu(self.driver)
     hcn=HaobcChooseNumber_lexiu(self.driver)
     sbcn = SingleBasketballChooseNumber_lexiu(self.driver)
     cl = ConfirmLottery_lexiu(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()#确认赛事