def test_after_shortfall_case(self):
     '''验证差额支付,复式号码流程'''
     ###点击进入双色球选号页面###
     ha = HomePage_lexiu(self.driver)
     hl = Login_lexiu(self.driver)
     hb = UnionLottoChooseNumber_lexiu(self.driver)
     hc = ConfirmLottery_lexiu(self.driver)
     hd = PaymetMode_lexiu(self.driver)
     he = BaofooPayment_lexiu(self.driver)
     hf = ChooseBank_lexiu(self.driver)
     hf1 = ConfirmPay_lexiu(self.driver)
     hf2 = LessPaySucess_lexiu(self.driver)
     ha.open()
     ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作
     ha.Moveable_float_close()
     ha.UnionLotto_link()  #点击双色球链接
     hb.u_red_label6()  # 任意选择6个红球
     hb.u_bule_label1_too()  # 任意选择2个蓝球
     hb.Confirm_button()  # 点击确认选号按钮
     hc.submit_order_to_station_owner_button()  # 点击“提交订单给站主”按钮
     hl.login_nomoney_lexiu()  #点击登录
     hc.submit_order_to_station_owner_button()  # 点击“提交订单给站主”按钮
     hc.confirm_and_pay_button()  # 点击“确认并支付”按钮
     mur = hd.Top_up()  ##获取充值成功文本
     self.assertEqual('充值', mur)
 def test_unionlotto_dantuo_continue_case(self):
     """胆拖选号页面,选择1注号码,在投注确认页面,继续选1注"""
     ha = HomePage_lexiu(self.driver)
     hl = Login_lexiu(self.driver)
     hb = UnionLottoChooseNumber_lexiu(self.driver)
     hc = ConfirmLottery_lexiu(self.driver)
     hd = PaymetMode_lexiu(self.driver)
     he = BaofooPayment_lexiu(self.driver)
     hf = ChooseBank_lexiu(self.driver)
     hf1 = ConfirmPay_lexiu(self.driver)
     hf2 = LessPaySucess_lexiu(self.driver)
     ha.open()
     ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作
     ha.Moveable_float_close()
     ha.UnionLotto_link()  # 点击双色球链接
     hb.DanTuo_mode()  # 选择胆拖模式
     hb.u_red_five_two()  # 红球选取5个胆码2个拖码
     hb.u_bule_one()  # 选取一个蓝球
     hb.Confirm_button()  # 确认选号
     hc.continue_choose_num_button()  ##继续选号
     hb.u_red_five_two()  # 红球选取5个胆码2个拖码
     hb.u_bule_one()  # 选取一个蓝球
     hb.Confirm_button()  # 确认选号
     hc.submit_order_to_station_owner_button()  # 点击“提交订单给站主”按钮
     hl.login_nomoney_lexiu()  # 点击登录
     hc.submit_order_to_station_owner_button()  # 点击“提交订单给站主”按钮
     hc.confirm_and_pay_button()  # 点击“确认并支付”按钮
     mur = hd.Top_up()  ##获取充值成功文本
     self.assertEqual('充值', mur)
 def test_one_note_five_double_ten_period_shortfall_case(self):
     '''手选一注,1注单式号码,修改倍数5,修改期数10,差额支付流程'''
     ###点击进入双色球选号页面###
     ha = HomePage_lexiu(self.driver)
     hl = Login_lexiu(self.driver)
     hb = UnionLottoChooseNumber_lexiu(self.driver)
     hc = ConfirmLottery_lexiu(self.driver)
     hd = PaymetMode_lexiu(self.driver)
     he = BaofooPayment_lexiu(self.driver)
     hf = ChooseBank_lexiu(self.driver)
     hf1 = ConfirmPay_lexiu(self.driver)
     hf2 = LessPaySucess_lexiu(self.driver)
     ha.open()
     ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作
     ha.Moveable_float_close()
     ha.UnionLotto_link()  #点击双色球链接
     hb.u_red_label6()  # 任意选择6个红球
     hb.u_bule_label1()  # 任意选择1个蓝球
     hb.Confirm_button()  # 点击确认选号按钮
     hc.chase_ticket_input("10")  #输入追10期
     hc.throw_times_input("5")  #输入投注倍数为5倍
     hc.submit_order_to_station_owner_button()  # 点击“提交订单给站主”按钮
     hl.login_nomoney_lexiu()  #点击登录
     hc.submit_order_to_station_owner_button()  # 点击“提交订单给站主”按钮
     hc.confirm_and_pay_button()  # 点击“确认并支付”按钮
     mur = hd.Top_up()  ##获取充值成功文本
     self.assertEqual('充值', mur)
 def test_less_payment_shortfall_case(self):
     '''验证差额支付流程'''
     ###点击进入双色球选号页面###
     hp = HomePage_lexiu(self.driver)
     hp.open()
     l = Login_lexiu(self.driver)
     ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作
     hp.Moveable_float_close()
     hp.UnionLotto_link()  #点击双色球链接
     ulcn = UnionLottoChooseNumber_lexiu(self.driver)
     ulcn.u_red_label6()  # 任意选择6个红球
     ulcn.u_bule_label1()  # 任意选择1个蓝球
     ulcn.Confirm_button()  # 点击确认选号按钮
     cl = ConfirmLottery_lexiu(self.driver)
     cl.submit_order_to_station_owner_button()  # 点击“提交订单给站主”按钮
     l.login_nomoney_lexiu()  #点击登录
     cl.submit_order_to_station_owner_button()  # 点击“提交订单给站主”按钮
     cl.confirm_and_pay_button()  # 点击“确认并支付”按钮
     pm = PaymetMode_lexiu(self.driver)
     mur = pm.Top_up()  ##获取充值成功文本
     self.assertEqual('充值', mur)