def test_patintball_rqspf_input10000times_case(self):  ##mj20171213
     '''选号页面,选择八场对阵,增加倍数为10000倍,提交订单'''
     hp = HomePage_lexiu(self.driver)
     pbcn = PaintBallChooseNumber_lexiu(self.driver)
     pbc = PaintBallConfirm_lexiu(self.driver)
     cl = ConfirmLottery_lexiu(self.driver)
     l = Login_lexiu(self.driver)
     sos = SubmitOrderSuccess_lexiu(self.driver)
     hp.open()
     hp.Moveable_float_close()
     hp.My_lottery_ticket()  # 点击我的彩票
     l.login_lexiu()  # 点击登录
     hp.homepage_link()  # 点击首页
     hp.paintball_link()  ##点击竞足
     pbcn.Play_f()  # 选择玩法
     pbcn.Play_rqspf()  # 选择让球胜平负
     aa = pbcn.rqspf_choose(8)  # 选择比赛
     if aa == 2:
         pbcn.confirm_match()  # 确认所选场次
         pbc.Times_input_click()  # 点击投注倍数
         pbc.Times_input(10000)  #输入投注10000倍
         cl.submit_order_to_station_owner_button()  # 提交订单给站主
         cl.confirm_and_pay_button()  # 点击确认支付
         text1 = sos.submit_order_success()  # 获取提交订单成功文本
         self.assertEqual('订单提交成功', text1)
 def test_test_paintball_rqspf_option7chage_throw_all_way(self):
     '''选号页面,任意选择七场对阵,选择串关为6串1、5串1、2串1组合,提交订单'''
     hp = HomePage_lexiu(self.driver)
     pbcn = PaintBallChooseNumber_lexiu(self.driver)
     cl = ConfirmLottery_lexiu(self.driver)
     pbc = PaintBallConfirm_lexiu(self.driver)
     sos = SubmitOrderSuccess_lexiu(self.driver)
     l = Login_lexiu(self.driver)
     hp.open()
     hp.Moveable_float_close()
     hp.My_lottery_ticket()  # 点击我的彩票
     l.login_lexiu()  # 点击登录
     hp.homepage_link()  # 点击首页
     hp.paintball_link()  ##点击竞足
     pbcn.Play_f()  # 选择玩法
     pbcn.Play_rqspf()  # 选择让球胜平负
     aa = pbcn.rqspf_choose(7)  # 选择7场比赛
     if aa == 2:
         pbcn.confirm_match()  # 点击确认赛事
         pbc.Pf_pass()  # 点击过关方式
         pbc.choose_all_pass_nu()  ###选中所有的过关方式
         a = pbc.Pf_pass_text()  ###读取选中的过关方式
         self.assertIn('2串1,3串1,4串1,5串1,6串1,7串1', a)
         cl.submit_order_to_station_owner_button()  # 点击提交订单给站主
         cl.confirm_and_pay_button()  # 点击确认支付
         text1 = sos.submit_order_success()  # 获取提交订单成功文本
         self.assertEqual('订单提交成功', text1)
 def test_immediately_sorce_lottery_case(self):
     '''在投注选号页面,点击右上角即时比分,打开赛事分析数据,点击页面下方的投注竞彩足球按钮,页面跳转到选号页,选择两场比赛,提交订单'''
     hp = HomePage_lexiu(self.driver)
     pbcn = PaintBallChooseNumber_lexiu(self.driver)
     cl = ConfirmLottery_lexiu(self.driver)
     pbc = PaintBallConfirm_lexiu(self.driver)
     l = Login_lexiu(self.driver)
     sos = SubmitOrderSuccess_lexiu(self.driver)
     t = There_D_choosenumber_lexiu(self.driver)
     hp.open()
     ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作
     hp.Moveable_float_close()
     hp.My_lottery_ticket()  # 点击我的彩票
     l.login_lexiu()  # 点击登录
     hp.homepage_link()  # 点击首页
     hp.paintball_link()  ##点击竞彩足球
     t.Instruct()  # 点击右上角的。。。
     pbcn.immediately()  #点击即时比分
     aa = pbcn.enter_analysis_page()  #点击进入赛事分析
     if aa == 1:
         pbcn.lottery_jczq_button()  #点击【投注竞彩足球】
         pbcn.Play_f()  ###点击玩法
         pbcn.Play_rqspf()  ##点击让球胜平负
         aa = pbcn.rqspf_choose(5)  ###随机点击5场比赛
         if aa == 2:
             pbcn.confirm_match()  ###点击确认赛事
             cl.submit_order_to_station_owner_button()  #点击提交订单给站主
             cl.confirm_and_pay_button()  #点击确认支付
             hp.Moveable_float_close()
             text1 = sos.submit_order_success()  #获取提交订单成功文本
             self.assertEqual('订单提交成功', text1)
Exemplo n.º 4
0
 def test_Play_bqc_Add_event(self):
     """验证添加/编辑赛事按钮,支付流程"""
     ha = HomePage_lexiu(self.driver)
     hb = PaintBallChooseNumber_lexiu(self.driver)
     hc = ConfirmLottery_lexiu(self.driver)
     hc1 = PaintBallConfirm_lexiu(self.driver)
     hl = Login_lexiu(self.driver)
     ha.open()
     ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作
     ha.Moveable_float_close()
     ha.paintball_link()  ##点击竞彩足球
     hb.Play_f()  ###点击玩法
     hb.Play_bqc()  ##点击比分
     aa = hb.Football_bqc_X(4)  ###随机点击4场比赛
     if aa > 0:
         hb.confirm_match()  ###点击已选N场比赛
         hc1.Add_event()  ###点击编辑/添加赛事
         mul = hb.Play_fb()  ###读取文本
         self.assertEqual('玩\n法', mul)
         hb.confirm_match()  ###点击已选N场比赛
         hc.submit_order_to_station_owner_button()  ####点击提交给站主
         # hl.new_user_login_tab()  # 点击新登录
         hl.login_lexiu()  # 输入账号,密码
         hc.submit_order_to_station_owner_button()  # 点击提交给站主
         hc.confirm_and_pay_button()  # 点击确认支付
Exemplo n.º 5
0
 def test_Play_bqc_Pf_del_icon(self):
     """验证删除选择的全部赛事图标,支付流程"""
     ha = HomePage_lexiu(self.driver)
     hb = PaintBallChooseNumber_lexiu(self.driver)
     hc = ConfirmLottery_lexiu(self.driver)
     hc1 = PaintBallConfirm_lexiu(self.driver)
     hl = Login_lexiu(self.driver)
     ha.open()
     ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作
     ha.Moveable_float_close()
     ha.paintball_link()  ##点击竞彩足球
     hb.Play_f()  ###点击玩法
     hb.Play_bqc()  ##点击比分
     aa = hb.Football_bqc_X(4)  ###随机点击4场比赛
     if aa > 0:
         hb.confirm_match()  ###点击已选N场比赛
         hc1.down_bf()
         hc1.Pf_del_icon()
         hc.confirm_delete_button()
         hb.top_more()
         hb.Football_bqc_X(4)
         mul = hb.Text_confirm_loc()
         self.assertEqual('已选%d场比赛' % aa, mul)
         hb.confirm_match()  ###点击已选N场比赛
         hc.submit_order_to_station_owner_button()  ####点击提交给站主
         # hl.new_user_login_tab()  # 点击新登录
         hl.login_lexiu()  # 输入账号,密码
         hc.submit_order_to_station_owner_button()  # 点击提交给站主
         hc.confirm_and_pay_button()  # 点击确认支付
 def test_Play_mix_Btn_less(self):
     """验证修改倍数 - 功能,支付流程"""
     ha = HomePage_lexiu(self.driver)
     hb = PaintBallChooseNumber_lexiu(self.driver)
     hc = ConfirmLottery_lexiu(self.driver)
     hc1 = PaintBallConfirm_lexiu(self.driver)
     hl = Login_lexiu(self.driver)
     ha.open()
     ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作
     ha.Moveable_float_close()
     ha.paintball_link()  ##点击竞彩足球
     hb.Play_f()  ###点击玩法
     hb.Play_mix()  ##点击混合投注
     aa = hb.Football_mix_nus_X(2)  ###随机点击4场比赛
     if aa > 0:
         hb.confirm_match()  ###点击已选N场比赛
         hc1.Times_input(3)  #####修改倍数为3
         hc1.Btn_less()  ####点击倍数-
         mul = hc1.Times_display()  ###获取倍数
         self.assertEqual('2', mul)
         hc.submit_order_to_station_owner_button()  ####点击提交给站主
         # hl.new_user_login_tab()  # 点击新登录
         hl.login_lexiu()  # 输入账号,密码
         hc.submit_order_to_station_owner_button()  # 点击提交给站主
         hc.confirm_and_pay_button()  # 点击确认支付
Exemplo n.º 7
0
 def test_Play_bqc_Btn_twenty(self):
     """验证20倍按钮功能,支付流程"""
     ha = HomePage_lexiu(self.driver)
     hb = PaintBallChooseNumber_lexiu(self.driver)
     hc = ConfirmLottery_lexiu(self.driver)
     hc1 = PaintBallConfirm_lexiu(self.driver)
     hl = Login_lexiu(self.driver)
     ha.open()
     ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作
     ha.Moveable_float_close()
     ha.paintball_link()  ##点击竞彩足球
     hb.Play_f()  ###点击玩法
     hb.Play_bqc()  ##点击比分
     aa = hb.Football_bqc_X(2)  ###随机点击2场比赛
     if aa > 0:
         hb.confirm_match()  ###点击已选N场比赛
         hc1.Times_input_click()  #####点击倍数输入框
         hc1.Times_number(20)  ####点击20倍
         mul = hc1.Times_display()  ###获取倍数
         self.assertEqual('20', mul)
         hc.submit_order_to_station_owner_button()  ####点击提交给站主
         # hl.new_user_login_tab()  # 点击新登录
         hl.login_lexiu()  # 输入账号,密码
         hc.submit_order_to_station_owner_button()  # 点击提交给站主
         hc.confirm_and_pay_button()  # 点击确认支付
 def test_function_instruct_case(self):
     '''验证订单详情页【功能说明】,能正常打开和关闭'''
     hp = HomePage_lexiu(self.driver)
     pbcn = PaintBallChooseNumber_lexiu(self.driver)
     cl = ConfirmLottery_lexiu(self.driver)
     pbc = PaintBallConfirm_lexiu(self.driver)
     l = Login_lexiu(self.driver)
     sos = SubmitOrderSuccess_lexiu(self.driver)
     od = OrderDetails_lexiu(self.driver)
     hp.open()
     ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作
     hp.Moveable_float_close()
     hp.My_lottery_ticket()  # 点击我的彩票
     l.login_lexiu()  # 点击登录
     hp.homepage_link()  # 点击首页
     hp.paintball_link()  ##点击竞彩足球
     pbcn.Play_f()  ###点击玩法
     pbcn.Play_rqspf()  ##点击让球胜平负
     aa = pbcn.rqspf_choose(2)  # 选择2场赛事
     if aa == 2:
         pbcn.confirm_match()  ###点击确认赛事
         cl.submit_order_to_station_owner_button()  # 点击提交订单给站主
         cl.confirm_and_pay_button()  # 点击确认支付
         hp.Moveable_float_close()
         sos.check_order_details()  # 点击查看详情
         self.driver.execute_script("window.scroll(0,200)")  #鼠标滑动200px
         od.function_instruct()  #点击功能说明
         od.i_know()  #点击【知道了】
 def test_check_order_details_case(self):
     '''验证点击【查看订单详情】页面跳转至订单详情页'''
     hp = HomePage_lexiu(self.driver)
     pbcn = PaintBallChooseNumber_lexiu(self.driver)
     cl = ConfirmLottery_lexiu(self.driver)
     pbc = PaintBallConfirm_lexiu(self.driver)
     l = Login_lexiu(self.driver)
     sos = SubmitOrderSuccess_lexiu(self.driver)
     od = OrderDetails_lexiu(self.driver)
     hp.open()
     ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作
     hp.Moveable_float_close()
     hp.My_lottery_ticket()  # 点击我的彩票
     l.login_lexiu()  # 点击登录
     hp.homepage_link()  # 点击首页
     hp.paintball_link()  ##点击竞彩足球
     pbcn.Play_f()  ###点击玩法
     pbcn.Play_rqspf()  ##点击让球胜平负
     aa = pbcn.rqspf_choose(2)  # 选择2场赛事
     if aa == 2:
         pbcn.confirm_match()  ###点击确认赛事
         cl.submit_order_to_station_owner_button()  #点击提交订单给站主
         cl.confirm_and_pay_button()  #点击确认支付
         hp.Moveable_float_close()
         sos.check_order_details()  #点击查看详情
         text1 = od.scheme_details()  #获取订单详情页文本
         self.assertEqual("方案详情", text1, '页面未跳转至订单详情页')
Exemplo n.º 10
0
 def test_Play_bqc_N_del(self):
     """验证删除赛事X按钮,支付流程"""
     ha = HomePage_lexiu(self.driver)
     hb = PaintBallChooseNumber_lexiu(self.driver)
     hc = ConfirmLottery_lexiu(self.driver)
     hc1 = PaintBallConfirm_lexiu(self.driver)
     hl = Login_lexiu(self.driver)
     ha.open()
     ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作
     ha.Moveable_float_close()
     ha.paintball_link()  ##点击竞彩足球
     hb.Play_f()  ###点击玩法
     hb.Play_bqc()  ##点击比分
     aa = hb.Football_bqc_X(4)  ###随机点击4场比赛
     if aa > 0:
         hb.confirm_match()  ###点击已选N场比赛
         a = hc1.NN()  ###读取删除前有多少个X按钮
         hc1.N_del(1)  ##点击第1场赛事的X按钮
         a1 = hc1.NN()  ###读取删除后有多少个X按钮
         self.assertEqual(a - 1, a1)
         hc.submit_order_to_station_owner_button()  ####点击提交给站主
         # hl.new_user_login_tab()  # 点击新登录
         hl.login_lexiu()  # 输入账号,密码
         hc.submit_order_to_station_owner_button()  # 点击提交给站主
         hc.confirm_and_pay_button()  # 点击确认支付
Exemplo n.º 11
0
 def test_Play_bqc_Pf_bouns(self):
     """验证过关功能,支付流程"""
     ha = HomePage_lexiu(self.driver)
     hb = PaintBallChooseNumber_lexiu(self.driver)
     hc = ConfirmLottery_lexiu(self.driver)
     hc1 = PaintBallConfirm_lexiu(self.driver)
     hl = Login_lexiu(self.driver)
     ha.open()
     ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作
     ha.Moveable_float_close()
     ha.paintball_link()  ##点击竞彩足球
     hb.Play_f()  ###点击玩法
     hb.Play_bqc()  ##点击比分
     aa = hb.Football_bqc_X(8)  ###随机点击8场比赛
     if aa > 0:
         hb.confirm_match()  ###点击已选N场比赛
         hc1.Pf_pass()
         mul = hc1.Pf_pass_nu()  ###读取点击的过关方式
         a = hc1.Pf_pass_text()  ###读取展示的过关方式
         self.assertEqual(a, mul)
         hc.submit_order_to_station_owner_button()  ####点击提交给站主
         # hl.new_user_login_tab()  # 点击新登录
         hl.login_lexiu()  # 输入账号,密码
         hc.submit_order_to_station_owner_button()  # 点击提交给站主
         hc.confirm_and_pay_button()  # 点击确认支付
 def test_edit_event_case(self):
     '''验证投注确认页编辑赛事按钮测试流程'''
     hp = HomePage_lexiu(self.driver)
     pbcn = PaintBallChooseNumber_lexiu(self.driver)
     cl = ConfirmLottery_lexiu(self.driver)
     pbc = PaintBallConfirm_lexiu(self.driver)
     l = Login_lexiu(self.driver)
     hp.open()
     ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作
     hp.Moveable_float_close()
     hp.paintball_link()  ##点击竞足
     pbcn.Play_f()  # 选择玩法
     pbcn.Play_2x1()  # 选择二选一
     aa = pbcn.two_choose_one_choose(2)  # 选择比赛
     if aa == 2:
         pbcn.confirm_match()  # 点击确认赛事
         pbc.Add_event()  #点击编辑赛事
         bb = pbcn.two_choose_one_edit_event(1)  # 选择1场比赛
         if bb == 1:
             print("场次小于两场")
         if bb == 2:
             pbcn.confirm_match()  # 点击确认赛事
             text = pbc.Pf_pass_text()  # 获取过关方式文本
             print(text)
             self.assertIn("3串1", text)
         if bb == 3:
             print("我已进入竞足单关")
 def test_optimize_award_add_lottery_sum_case(self):
     '''选择四场对阵,进入投注确认页面,选择串关为4串1、3串1、2串1,点击奖金优化,进入奖金优化页面,增加投注金额,提交订单'''
     hp = HomePage_lexiu(self.driver)
     pbcn = PaintBallChooseNumber_lexiu(self.driver)
     cl = ConfirmLottery_lexiu(self.driver)
     pbc = PaintBallConfirm_lexiu(self.driver)
     l = Login_lexiu(self.driver)
     sos = SubmitOrderSuccess_lexiu(self.driver)
     hp.open()
     ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作
     hp.Moveable_float_close()
     hp.My_lottery_ticket()  # 点击我的彩票
     l.login_lexiu()  # 点击登录
     hp.homepage_link()  # 点击首页
     hp.paintball_link()  ##点击竞彩足球
     pbcn.Play_f()  ###点击玩法
     pbcn.Play_rqspf()  ##点击让球胜平负
     aa = pbcn.rqspf_choose(4)  ###随机点击4场比赛
     if aa == 2:
         pbcn.confirm_match()  ###点击确认赛事
         pbc.Pf_pass()  # 点击过关方式
         pbc.choose_all_pass_nu()  ###选中所有的过关方式
         a = pbc.Pf_pass_text()  ###读取选中的过关方式
         self.assertIn('2串1,3串1,4串1', a)
         pbc.Pf_bouns()  ##点击奖金优化
         pbc.optimize_add_money_input(200)  # 修改奖金优化金额
         pbc.submit_order()  # 点击提交订单给站主
         cl.confirm_and_pay_button()  # 点击确认支付
         hp.Moveable_float_close()
         text1 = sos.submit_order_success()  # 获取提交订单成功文本
         self.assertEqual('订单提交成功', text1)
 def test_paintball_rqspf_click_all(self):
     '''点击页面展示所有比赛,测试流程'''
     hp = HomePage_lexiu(self.driver)
     pbcn = PaintBallChooseNumber_lexiu(self.driver)
     cl = ConfirmLottery_lexiu(self.driver)
     hp.open()
     hp.paintball_link()  ##点击竞足
     pbcn.Play_f()  # 选择玩法
     pbcn.Play_rqspf()  # 选择让球胜平负
     pbcn.rqspf_click_all()  # 选择比赛
 def test_paintball_rqrqspf_10_case(self):
     '''选择一天中所有比赛场次流程测试'''
     ###点击进入双色球选号页面###
     hp = HomePage_lexiu(self.driver)
     pbcn = PaintBallChooseNumber_lexiu(self.driver)
     hp.open()
     hp.paintball_link()  ##点击竞足
     pbcn.Play_f()  #选择玩法
     pbcn.Play_rqspf()  #选择让球胜平负
     pbcn.rqspf_choose(10)  #选择比赛
 def test_paintball_rqtwo_choose_one_10_case(self):
     '''选择一天中所有比赛场次流程测试'''
     hp = HomePage_lexiu(self.driver)
     pbcn = PaintBallChooseNumber_lexiu(self.driver)
     hp.open()
     hp.Moveable_float_close()
     hp.paintball_link()  ##点击竞足
     pbcn.Play_f()  #选择玩法
     pbcn.Play_2x1()  #选择二选一
     pbcn.two_choose_one_choose(10)  #选择比赛
Exemplo n.º 17
0
 def test_paintball_spf_10_case(self):
     '''选择一天中所有比赛场次流程测试'''
     ###点击进入竞彩足球选号页面###
     hp = HomePage_lexiu(self.driver)
     pbcn = PaintBallChooseNumber_lexiu(self.driver)
     hp.open()
     hp.Moveable_float_close()
     hp.paintball_link()  ##点击竞足
     pbcn.Play_f()  #选择玩法
     pbcn.Play_spf()  #选择胜平负
     pbcn.spf_choose(10)  #选择比赛
 def test_paintball_two_choose_one_click_all(self):
     '''点击页面展示所有比赛,测试流程'''
     hp = HomePage_lexiu(self.driver)
     pbcn = PaintBallChooseNumber_lexiu(self.driver)
     cl = ConfirmLottery_lexiu(self.driver)
     hp.open()
     hp.Moveable_float_close()
     hp.paintball_link()  ##点击竞足
     pbcn.Play_f()  # 选择玩法
     pbcn.Play_2x1()  # 选择二选一
     pbcn.two_choose_one_click_all()  # 选择比赛
 def test_paintball_rqspf_8_case(self):
     '''选择8场比赛,流程测试'''
     ###点击进入双色球选号页面###
     hp = HomePage_lexiu(self.driver)
     pbcn = PaintBallChooseNumber_lexiu(self.driver)
     cl = ConfirmLottery_lexiu(self.driver)
     hp.open()
     hp.paintball_link()  ##点击竞足
     pbcn.Play_f()  #选择玩法
     pbcn.Play_rqspf()  #选择让球胜平负
     aa = pbcn.rqspf_choose(8)  #选择比赛
     if aa == 2:
         pbcn.confirm_match()  #确认所选场次
         cl.submit_order_to_station_owner_button()  #提交订单给站主
 def test_paintball_rqtwo_choose_one_8_case(self):
     '''选择8场比赛,流程测试'''
     hp = HomePage_lexiu(self.driver)
     pbcn = PaintBallChooseNumber_lexiu(self.driver)
     cl = ConfirmLottery_lexiu(self.driver)
     hp.open()
     hp.Moveable_float_close()
     hp.paintball_link()  #####点击进入竞彩足球选号页面###
     pbcn.Play_f()  #选择玩法
     pbcn.Play_2x1()  #选择二选一
     aa = pbcn.two_choose_one_choose(8)  #选择比赛
     sleep(3)
     if aa == 2:
         pbcn.confirm_match()  #确认所选场次
         cl.submit_order_to_station_owner_button()  #提交订单给站主
 def test_throw_sub_btn_case(self):
     '''点击投注倍数的-按钮流程测试'''
     hp = HomePage_lexiu(self.driver)
     pbcn = PaintBallChooseNumber_lexiu(self.driver)
     cl = ConfirmLottery_lexiu(self.driver)
     pbc = PaintBallConfirm_lexiu(self.driver)
     l = Login_lexiu(self.driver)
     hp.open()
     hp.paintball_link()  ##点击竞足
     pbcn.Play_f()  # 选择玩法
     pbcn.Play_rqspf()  # 选择让球胜平负
     aa = pbcn.rqspf_choose(2)  # 选择比赛
     if aa == 2:
         pbcn.confirm_match()  # 点击确认赛事
         pbc.Btn_less()  #点击-按钮
         text = cl.throw_time_text()
         self.assertIn('4', text)
 def test_throw50_case(self):
     '''选择投50倍流程测试'''
     hp = HomePage_lexiu(self.driver)
     pbcn = PaintBallChooseNumber_lexiu(self.driver)
     cl = ConfirmLottery_lexiu(self.driver)
     pbc = PaintBallConfirm_lexiu(self.driver)
     l = Login_lexiu(self.driver)
     hp.open()
     hp.paintball_link()  ##点击竞足
     pbcn.Play_f()  # 选择玩法
     pbcn.Play_rqspf()  # 选择让球胜平负
     aa = pbcn.rqspf_choose(2)  # 选择比赛
     if aa == 2:
         pbcn.confirm_match()  # 点击确认赛事
         pbc.Times_input_click()  # 点击投注倍数
         pbc.throw_times(50)  # 点击投注50倍
         text = cl.throw_time_text()
         self.assertIn('50', text)
 def test_throw_way_case(self):
     '''改变默认投注过关方式流程测试'''
     hp = HomePage_lexiu(self.driver)
     pbcn = PaintBallChooseNumber_lexiu(self.driver)
     cl = ConfirmLottery_lexiu(self.driver)
     pbc = PaintBallConfirm_lexiu(self.driver)
     hp.open()
     hp.Moveable_float_close()
     hp.paintball_link()  ##点击竞足
     pbcn.Play_f()  # 选择玩法
     pbcn.Play_2x1()  # 选择二选一
     aa = pbcn.two_choose_one_choose(8)  # 选择比赛
     if aa == 2:
         pbcn.confirm_match()  # 点击确认赛事
         pbc.Pf_pass()  #点击过关方式
         mul = pbc.Pf_pass_nu()  ###读取点击的过关方式
         a = pbc.Pf_pass_text()  ###读取展示的过关方式
         self.assertEqual(a, mul)
 def test_input_throw_times_case(self):
     '''输入投注3倍测试流程'''
     hp = HomePage_lexiu(self.driver)
     pbcn = PaintBallChooseNumber_lexiu(self.driver)
     cl = ConfirmLottery_lexiu(self.driver)
     pbc = PaintBallConfirm_lexiu(self.driver)
     hp.open()
     hp.Moveable_float_close()
     hp.paintball_link()  ##点击竞足
     pbcn.Play_f()  # 选择玩法
     pbcn.Play_2x1()  # 选择二选一
     aa = pbcn.two_choose_one_choose(2)  # 选择比赛
     if aa == 2:
         pbcn.confirm_match()  # 点击确认赛事
         pbc.Times_input_click()  #点击投注倍数输入框
         pbc.Times_input(3)  #输入投注3倍
         text = cl.throw_time_text()
         self.assertIn('3', text)
 def test_throw_add_btn_case(self):
     '''点击投注倍数的+按钮流程测试'''
     hp = HomePage_lexiu(self.driver)
     pbcn = PaintBallChooseNumber_lexiu(self.driver)
     cl = ConfirmLottery_lexiu(self.driver)
     pbc = PaintBallConfirm_lexiu(self.driver)
     l = Login_lexiu(self.driver)
     hp.open()
     hp.Moveable_float_close()
     hp.paintball_link()  ##点击竞足
     pbcn.Play_f()  # 选择玩法
     pbcn.Play_2x1()  # 选择二选一
     aa = pbcn.two_choose_one_choose(2)  # 选择比赛
     if aa == 2:
         pbcn.confirm_match()  # 点击确认赛事
         pbc.Btn_add()  #点击+按钮
         text = cl.throw_time_text()
         self.assertIn('6', text)
 def test_choose_num_clear_button_case(self):
     '''选号页面清除所选比赛流程测试'''
     hp = HomePage_lexiu(self.driver)
     pbcn = PaintBallChooseNumber_lexiu(self.driver)
     pbc = PaintBallConfirm_lexiu(self.driver)
     cl = ConfirmLottery_lexiu(self.driver)
     l = Login_lexiu(self.driver)
     hp.open()
     hp.paintball_link()  ##点击竞足
     pbcn.Play_f()  # 选择玩法
     pbcn.Play_rqspf()  # 选择让球胜平负
     aa = pbcn.rqspf_choose(2)  # 选择比赛
     if aa == 2:
         pbcn.clear_button()  #点击清除按钮
         pbcn.rqspf_choose(3)  #选择3场比赛
         pbcn.confirm_match()  #确认所选场次
         text = pbc.Pf_pass_text()  #获取过关方式文本
         self.assertIn("3串1", text)
 def test_paintball_rqtwo_choose_one_9_case(self):
     '''选择九场比赛,获取“最大场次限制8场”提示,测试流程'''
     hp = HomePage_lexiu(self.driver)
     pbcn = PaintBallChooseNumber_lexiu(self.driver)
     cl = ConfirmLottery_lexiu(self.driver)
     hp.open()
     hp.Moveable_float_close()
     hp.paintball_link()  ##点击竞足
     pbcn.Play_f()  #选择玩法
     pbcn.Play_2x1()  #选择二选一
     aa = pbcn.two_choose_one_choose(9)  # 选择比赛
     if aa == 2:
         try:
             pbcn.know()
         except ElementNotVisibleException:
             print("当前场次小于8场")
         pbcn.confirm_match()  # 确认所选场次
     else:
         print("我返回了")
 def optimize_award_case(self):
     '''验证奖金优化流程测试'''
     hp = HomePage_lexiu(self.driver)
     pbcn = PaintBallChooseNumber_lexiu(self.driver)
     cl = ConfirmLottery_lexiu(self.driver)
     pbc = PaintBallConfirm_lexiu(self.driver)
     hl = Login_lexiu(self.driver)
     hp.open()
     ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作
     hp.Moveable_float_close()
     hp.paintball_link()  ##点击竞彩足球
     pbcn.Play_f()  ###点击玩法
     pbcn.Play_2x1()  ##点击二选一
     aa = pbcn.two_choose_one_choose(2)  ###随机点击4场比赛
     if aa > 0:
         pbcn.confirm_match()  ###点击确认赛事
         pbc.Pf_bouns()  ##点击奖金优化
         text = pbc.optimize_award()  #获取奖金优化页上方文本
         self.assertIn("平均优化购买", text)
 def test_paintball_rqspf_9_case(self):
     '''选择九场比赛,获取“最大场次限制8场”提示,测试流程'''
     ###点击进入双色球选号页面###
     hp = HomePage_lexiu(self.driver)
     pbcn = PaintBallChooseNumber_lexiu(self.driver)
     cl = ConfirmLottery_lexiu(self.driver)
     hp.open()
     hp.paintball_link()  ##点击竞足
     pbcn.Play_f()  #选择玩法
     pbcn.Play_rqspf()  #选择让球胜平负
     aa = pbcn.rqspf_choose(9)  # 选择比赛
     if aa == 2:
         try:
             pbcn.know()
         except ElementNotVisibleException:
             print("当前场次小于8场")
         pbcn.confirm_match()  # 确认所选场次
     else:
         print("我返回了")
 def test_immediately_reture_homepage(self):
     '''在投注选号页面,点击右上角即时比分,可以打开并返回首页'''
     hp = HomePage_lexiu(self.driver)
     pbcn = PaintBallChooseNumber_lexiu(self.driver)
     cl = ConfirmLottery_lexiu(self.driver)
     pbc = PaintBallConfirm_lexiu(self.driver)
     l = Login_lexiu(self.driver)
     sos = SubmitOrderSuccess_lexiu(self.driver)
     t = There_D_choosenumber_lexiu(self.driver)
     hp.open()
     ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作
     hp.Moveable_float_close()
     hp.My_lottery_ticket()  # 点击我的彩票
     l.login_lexiu()  # 点击登录
     hp.homepage_link()  # 点击首页
     hp.paintball_link()  ##点击竞彩足球
     t.Instruct()  # 点击右上角的。。。
     pbcn.immediately()  # 点击即时比分
     pbcn.immediately_page_return_homepage()  #点击返回首页