def test_Play_sfc_Btn_hundred(self):
     """验证100倍按钮功能,支付流程"""
     ha = HomePage_leyou(self.driver)
     hb = HaobcChooseNumber_leyou(self.driver)
     hb1 = PaintBallChooseNumber_leyou(self.driver)
     hc = ConfirmLottery_leyou(self.driver)
     hc1 = PaintBallConfirm_leyou(self.driver)
     hc2 = SingleFootConfirmLottery_leyou(self.driver)
     hl = Login_leyou(self.driver)
     ha.open()
     ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作
     ha.Moveable_float_close()
     ha.single_basketball_link()  ##点击竞篮单关
     hb.Play_f()  ####点击玩法
     hb.Play_sfc()  # 点击胜分差玩法
     aa = hb.Basketball_sfc_nus_X(4)  ###随机点击4场比赛
     if aa > 0:
         hb.confirm_match()  ###点击已选N场比赛
         hc1.Times_input_click()  #####点击倍数输入框
         hc1.Times_number(100)####点击100倍
         mul = hc2.Lottery_dgp()  ###获取倍数
         self.assertEqual('共9600元', mul)
         hc.submit_order_to_station_owner_button()  ####点击提交给站主
         # hl.new_user_login_tab()  # 点击新登录
         hl.login_leyou()  # 输入账号,密码
         hc.submit_order_to_station_owner_button()  # 点击提交给站主
         hc.confirm_and_pay_button()  # 点击确认支付
Beispiel #2
0
 def test_Play_dgp_Btn_eighty(self):
     """验证80倍按钮功能,支付流程"""
     ha = HomePage_leyou(self.driver)
     hb = PaintBallChooseNumber_leyou(self.driver)
     hb1 = SingleFootChooseNumber_leyou(self.driver)
     hc = ConfirmLottery_leyou(self.driver)
     hc1 = SingleFootConfirmLottery_leyou(self.driver)
     hc2 = PaintBallConfirm_leyou(self.driver)
     hl = Login_leyou(self.driver)
     ha.open()
     ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作
     ha.Moveable_float_close()
     ha.single_foot_link()  ###点击竞足单关
     hb.Play_f()  ####点击玩法
     hb1.Play_dgp()  ###点击单关配
     sleep(1)
     hb1.Dgp_tan()  ##点击弹框
     aa = hb1.Paintball_single_dgp_nus_X(1)  ###随机点击2场比赛
     if aa > 0:
         hb.confirm_match()  ###点击已选N场比赛
         hc2.Times_input_click()  #####点击倍数输入框
         hc2.Times_number(80)  ####点击80倍
         mul = hc1.Lottery_dgp()  ###获取倍数
         self.assertEqual('共960元', mul)
         hc.submit_order_to_station_owner_button()  ####点击提交给站主
         # hl.new_user_login_tab()  # 点击新登录
         hl.login_leyou()  # 输入账号,密码
         hc2.Times_input(10)  #####修改倍数为3
         hc.submit_order_to_station_owner_button()  # 点击提交给站主
         hc.confirm_and_pay_button()  # 点击确认支付
 def test_eight_note_Times_input(self):
     """任选8场比赛,在投注确认页面,修改倍数为10000倍"""
     ha = HomePage_leyou(self.driver)
     hb = HaobcChooseNumber_leyou(self.driver)
     hc2 = SingleFootConfirmLottery_leyou(self.driver)
     hc = ConfirmLottery_leyou(self.driver)
     hc1 = PaintBallConfirm_leyou(self.driver)
     hl = Login_leyou(self.driver)
     ha.open()
     ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作
     ha.Moveable_float_close()
     ha.single_basketball_link()  ##点击竞篮单关
     hb.Play_f()  ####点击玩法
     hb.Play_mix()  # 点击胜分差玩法
     aa = hb.Basketball_sfc_nus_X(8)  ###随机点击4场比赛
     if aa > 0:
         hb.confirm_match()  ###点击已选N场比赛
         hc1.Times_input(10000)  #####修改倍数为3
         mul = hc2.Lottery_dgp()  ###获取倍数
         a = 24 * aa * 10000
         self.assertEqual('共%d元' % a, mul)
         hc.submit_order_to_station_owner_button()  ####点击提交给站主
         # hl.new_user_login_tab()  # 点击新登录
         hl.login_leyou()  # 输入账号,密码
         hc.submit_order_to_station_owner_button()  # 点击提交给站主
         hc.confirm_and_pay_button()  # 点击确认支付