Example #1
0
 def test_orderdetails_continue_scheme_case(self):
     '''胆拖投注提交订单之后,查看订单详情,点击继续购买该方案,提交订单'''
     hp = HomePage_lelun(self.driver)
     ulcn = UnionLottoChooseNumber_lelun(self.driver)
     efcn = ElevenFiveChooseNumber_lelun(self.driver)
     efcl = EleChooseFiveConfirmLottery_lelun(self.driver)
     od = OrderDetails_lelun(self.driver)
     l = Login_lelun(self.driver)
     sos = SubmitOrderSuccess_lelun(self.driver)
     cl = ConfirmLottery_lelun(self.driver)
     hp.open()
     hp.Moveable_float_close()
     hp.My_lottery_ticket()  # 点击我的彩票
     l.login_lelun()  # 登录
     hp.homepage_link()  # 点击首页
     hp.Moveable_float_close()
     hp.gx_11_5_link()  # 点击广西11选5链接
     efcn.spread_mode_button()  # 展开玩法
     efcn.mode_choose(24, 16)  # 选择广西11选5胆拖模式任选二玩法
     efcn.dantuo_choose_num(1, 2)  # 选取1个胆码2个拖码
     efcn.confirm_number_button()  # 点击确认选号
     efcl.submit_order_button()  # 点击提交订单给站主
     cl.confirm_and_pay_button()  ##点击确认并支付
     hp.Moveable_float_close()  # 如果出现浮层弹框,关闭
     sos.check_order_details()  # 点击查看订单详情
     od.Scheme()  #点击继续投注该方案
     num1 = efcl.Ele_five_select_number()  # 获取投注确认页的选号
     efcl.submit_order_button()  # 点击提交订单给站主
     cl.confirm_and_pay_button()  ##点击确认并支付
 def test_delete_double_event_case(self):
     """选择两场赛事,验证单个删除多场赛事X按钮,流程测试"""
     ha = HomePage_lelun(self.driver)
     hb = PaintBallChooseNumber_lelun(self.driver)
     hb1 = HaobcChooseNumber_lelun(self.driver)
     hc = ConfirmLottery_lelun(self.driver)
     hc1 = PaintBallConfirm_lelun(self.driver)
     hc2 = ArrangeFiveConfirmLottery_lelun(self.driver)
     hl = Login_lelun(self.driver)
     hd = SubmitOrderSuccess_lelun(self.driver)
     ha.open()
     ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作
     ha.Moveable_float_close()
     ha.My_lottery_ticket()  # 点击我的彩票
     hl.login_lelun()  # 点击登录
     ha.homepage_link()  # 点击首页
     ha.haobc_link()  # 点击竞彩蓝球
     hb.Play_f()  # 选择玩法
     hb.Play_mix()  ###点击混合投注
     aa = hb1.Basketball_mix_nus_X(2)  # 选择比赛
     if aa == 2:
         hb.confirm_match()  ###点击已选N场比赛
         hc1.NN()  ###读取删除前有多少个X按钮
         hc1.Del_n(1)  ##点击删除第一场赛事
         hb1.Basketball_mix_nus_X(3)
         hb.confirm_match()  ###点击已选N场比赛
         hc.submit_order_to_station_owner_button()  # 提交订单给站主
         hc.confirm_and_pay_button()  # 点击确认支付
         text1 = hd.submit_order_success()  # 获取提交订单成功文本
         self.assertEqual('订单提交成功', text1)
 def test_onestar_machine_five_case(self):
     '''投注确认页,点击【机选5注】,提交订单'''
     hp = HomePage_lelun(self.driver)
     hp.open()
     l = Login_lelun(self.driver)
     efcn = ElevenFiveChooseNumber_lelun(self.driver)
     ulcn = UnionLottoChooseNumber_lelun(self.driver)
     efcl = EleChooseFiveConfirmLottery_lelun(self.driver)
     cl = ConfirmLottery_lelun(self.driver)
     sos = SubmitOrderSuccess_lelun(self.driver)
     hp.Moveable_float_close()  # 点击关闭浮窗
     hp.My_lottery_ticket()  # 点击我的彩票
     l.login_lelun()  # 点击登录
     hp.homepage_link()  # 点击首页
     hp.cqssc_link()  # 点击重庆时时彩链接
     ssc_cn = CQSSC_ChooseNumber_lelun(self.driver)
     ssc_cn.play_mode()  # 选择模式
     ssc_cn.one_star()  # 选择一星
     ssc_cn.gewei_random(1)  # 选择1个号码
     aa = efcn.total_buy_text()
     self.assertIn("1注", aa)
     efcn.confirm_number_button()  # 点击确认选号
     efcl.machine_choose_five()  #点击机选5注
     bb = efcl.lottery_chase_throw_text()  # 获取注数倍数
     self.assertIn("6注1期1倍", bb)
     efcl.submit_order_button()  # 点击提交订单给站主
     cl.confirm_and_pay_button()  # 点击确认并支付
     hp.Moveable_float_close()  # 如果出现浮层弹框,关闭
     text = sos.submit_order_success()  # 获取页面“订单提交成功”文本
     self.assertEqual("订单提交成功", text)
     trade_name = sos.trade_name_text()  # 获取页面商品名称文本
     self.assertIn("商品名称:乐秀赢球-重庆时时彩", trade_name)
 def test_immediately_sorce_lottery_case(self):
     '''在投注选号页面,点击右上角即时比分,打开赛事分析数据,点击页面下方的投注竞彩足球按钮,页面跳转到选号页,选择两场比赛,提交订单'''
     hp = HomePage_lelun(self.driver)
     pbcn = PaintBallChooseNumber_lelun(self.driver)
     l = Login_lelun(self.driver)
     sos = SubmitOrderSuccess_lelun(self.driver)
     t = There_D_choosenumber_lelun(self.driver)
     hb = HaobcChooseNumber_lelun(self.driver)
     hc = ConfirmLottery_lelun(self.driver)
     hc1 = PaintBallConfirm_lelun(self.driver)
     hl = Login_lelun(self.driver)
     hp.open()
     ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作
     hp.Moveable_float_close()
     hp.My_lottery_ticket()  # 点击我的彩票
     l.login_lelun()  # 点击登录
     hp.homepage_link()  # 点击首页
     hp.haobc_link()  #点击竞彩蓝球
     t.Instruct()  # 点击右上角的。。。
     pbcn.immediately()  #点击即时比分
     aa = pbcn.enter_analysis_page()  #点击进入赛事分析
     if aa == 1:
         hb.Race_basketball()  #点击【投注竞彩蓝球】
         aa = hb.Basketball_mix_nus_X(2)  ###随机点击8场比赛
         if aa > 0:
             hb.confirm_match()  ###点击已选N场比赛
             hc.submit_order_to_station_owner_button()  ####点击提交给站主
             hc.confirm_and_pay_button()  # 点击确认支付
             text1 = sos.submit_order_success()  #获取提交订单成功文本
             self.assertEqual('订单提交成功', text1)
 def test_paintball_rqspf_chage_throw_all_way(self):
     '''选号页面,任意选择六场对阵,进入投注确认页,选择串关为6串1、5串1、4串1,3串1,2串1组合,提交订单'''
     ha = HomePage_lelun(self.driver)
     hb = PaintBallChooseNumber_lelun(self.driver)
     hb1 = HaobcChooseNumber_lelun(self.driver)
     hc = ConfirmLottery_lelun(self.driver)
     hc1 = PaintBallConfirm_lelun(self.driver)
     hc2 = ArrangeFiveConfirmLottery_lelun(self.driver)
     hl = Login_lelun(self.driver)
     hd = SubmitOrderSuccess_lelun(self.driver)
     ha.open()
     ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作
     ha.Moveable_float_close()
     ha.My_lottery_ticket()  # 点击我的彩票
     hl.login_lelun()  # 点击登录
     ha.homepage_link()  # 点击首页
     ha.haobc_link()  # 点击竞彩蓝球
     hb.Play_f()  # 选择玩法
     hb.Play_mix()  ###点击混合投注
     aa = hb1.Basketball_mix_nus_X(6)  # 选择比赛
     if aa == 6:
         hb.confirm_match()  ###点击已选N场比赛
         hc1.Pf_pass()  # 点击过关方式
         hc1.choose_all_pass_nu()  ###选中所有的过关方式
         a = hc1.Pf_pass_text()  ###读取选中的过关方式
         self.assertIn('2串1,3串1,4串1,5串1,6串1', a)
         hc.submit_order_to_station_owner_button()  # 点击提交订单给站主
         hc.confirm_and_pay_button()  # 点击确认支付
         text1 = hd.submit_order_success()  # 获取提交订单成功文本
         self.assertEqual('订单提交成功', text1)
 def test_delete_one_event_case(self):  ###BUG修复中
     """验证单个删除赛事X按钮,流程测试"""
     ha = HomePage_lelun(self.driver)
     hb = PaintBallChooseNumber_lelun(self.driver)
     hb1 = HaobcChooseNumber_lelun(self.driver)
     hc = ConfirmLottery_lelun(self.driver)
     hc1 = PaintBallConfirm_lelun(self.driver)
     hl = Login_lelun(self.driver)
     hd = SubmitOrderSuccess_lelun(self.driver)
     ha.open()
     ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作
     ha.Moveable_float_close()
     ha.My_lottery_ticket()  # 点击我的彩票
     hl.login_lelun()  # 点击登录
     ha.homepage_link()  # 点击首页
     ha.single_basketball_link()  ##点击竞篮单关
     hb.Play_f()  # 选择玩法
     hb.Play_mix()  ###点击混合投注
     aa = hb1.Basketball_sfc_nus_X(3)  ###随机点击4场比赛
     if aa == 3:
         hb.confirm_match()  ###点击已选N场比赛
         a = hc1.NN()  ###读取删除前有多少个X按钮
         hc1.Del_n(1)  ##点击删除第一场赛事
         a1 = hc1.NN()  ###读取删除后有多少个X按钮
         self.assertEqual(a - 1, a1)
         hc.submit_order_to_station_owner_button()  # 提交订单给站主
         hc.confirm_and_pay_button()  # 点击确认支付
         text1 = hd.submit_order_success()  # 获取提交订单成功文本
         self.assertEqual('订单提交成功', text1)
Example #7
0
 def test_fivestar_choose_double_case(self):
     '''五星直选玩法,每位各选多个号码并提交订单流程测试'''
     hp = HomePage_lelun(self.driver)
     hp.open()
     l = Login_lelun(self.driver)
     efcn = ElevenFiveChooseNumber_lelun(self.driver)
     efcl = EleChooseFiveConfirmLottery_lelun(self.driver)
     cl = ConfirmLottery_lelun(self.driver)
     sos = SubmitOrderSuccess_lelun(self.driver)
     hp.Moveable_float_close()  # 点击关闭浮窗
     hp.My_lottery_ticket()  # 点击我的彩票
     l.login_lelun()  # 点击登录
     hp.homepage_link()  # 点击首页
     hp.cqssc_link()  # 点击重庆时时彩链接
     ssc_cn = CQSSC_ChooseNumber_lelun(self.driver)
     ssc_cn.play_mode()  # 选择模式
     ssc_cn.five_star()  # 选择五星
     ssc_cn.wanwei_random(2)
     ssc_cn.qianwei_random(2)
     ssc_cn.baiwei_random(2)
     self.driver.execute_script("window.scroll(0,300)")
     ssc_cn.shiwei_random(2)
     ssc_cn.gewei_random(2)
     aa = efcn.total_buy_text()
     self.assertIn("32注 ", aa)
     efcn.confirm_number_button()  # 点击确认选号
     efcl.submit_order_button()  # 点击提交订单给站主
     cl.confirm_and_pay_button()  # 点击确认并支付
     hp.Moveable_float_close()  # 如果出现浮层弹框,关闭
     text = sos.submit_order_success()  # 获取页面“订单提交成功”文本
     self.assertEqual("订单提交成功", text)
     trade_name = sos.trade_name_text()  # 获取页面商品名称文本
     self.assertIn("商品名称:乐秀赢球-重庆时时彩", trade_name)
 def test_many_lottery_many_times_case(self):
     '''复式多注,进入智能追号页面,默认追期,提交订单'''
     hp = HomePage_lelun(self.driver)
     ulcn = UnionLottoChooseNumber_lelun(self.driver)
     efcn = ElevenFiveChooseNumber_lelun(self.driver)
     efcl = EleChooseFiveConfirmLottery_lelun(self.driver)
     ssc_cl = CQSSCConfirmLottery_lelun(self.driver)
     od = OrderDetails_lelun(self.driver)
     l = Login_lelun(self.driver)
     sos = SubmitOrderSuccess_lelun(self.driver)
     cl = ConfirmLottery_lelun(self.driver)
     hp.open()
     hp.Moveable_float_close()
     hp.My_lottery_ticket()  # 点击我的彩票
     l.login_lelun()  # 登录
     hp.homepage_link()  # 点击首页
     hp.Moveable_float_close()
     hp.gd_11_5_link()  # 点击广东11选5链接
     efcn.spread_mode_button()  # 展开玩法
     efcn.mode_choose(23, 1)  # 广东11选5任选二
     efcn.hand_options(4)  # 任选4个号
     efcn.confirm_number_button()  # 点击确认选号
     text1 = efcl.lottery_chase_throw_text()
     self.assertIn("6注1期1倍",text1)
     efcl.continue_choose_num()#点击继续选号
     efcn.hand_options(4)#点击任选4个号码
     efcn.confirm_number_button()  # 点击确认选号
     text2 = efcl.lottery_chase_throw_text()
     self.assertIn("12注1期1倍", text2)
     ssc_cl.intelligently_chase_button()  # 点击智能追号
     ssc_cl.submit_button()  # 点击提交订单
Example #9
0
 def test_paintball_rqspf_chage_throw_all_way(self):
     '''选号页面,任意选择六场对阵,进入投注确认页,选择串关为6串1、5串1、4串1,3串1,2串1组合,提交订单'''
     hp = HomePage_lelun(self.driver)
     pbcn = PaintBallChooseNumber_lelun(self.driver)
     cl = ConfirmLottery_lelun(self.driver)
     pbc = PaintBallConfirm_lelun(self.driver)
     sos = SubmitOrderSuccess_lelun(self.driver)
     l = Login_lelun(self.driver)
     hp.open()
     hp.Moveable_float_close()
     hp.My_lottery_ticket()  # 点击我的彩票
     l.login_lelun()  # 点击登录
     hp.homepage_link()  # 点击首页
     hp.paintball_link()  ##点击竞足
     pbcn.Play_f()  # 选择玩法
     pbcn.Play_rqspf()  # 选择让球胜平负
     aa = pbcn.rqspf_choose(6)  # 选择6场比赛
     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', a)
         cl.submit_order_to_station_owner_button()  # 点击提交订单给站主
         cl.confirm_and_pay_button()  # 点击确认支付
         text1 = sos.submit_order_success()  # 获取提交订单成功文本
         self.assertEqual('订单提交成功', text1)
Example #10
0
 def test_SuccessPage_continue_buy_case(self):
     '''订单详情页,点击【点击投注大乐透】,页面跳转至选号页面,选择一注,提交订单'''
     ###点击进入大乐透进入大乐透选号页面###
     hp = HomePage_lelun(self.driver)
     hp.open()
     ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作
     hp.Moveable_float_close()
     l = Login_lelun(self.driver)
     hp.My_lottery_ticket()  # 点击我的彩票
     l.login_lelun()  # 点击登录
     sos = SubmitOrderSuccess_lelun(self.driver)
     hp.homepage_link()  # 点击首页
     hp.Moveable_float_close()
     hp.Lottery_link()  # 点击大乐透链接
     blcn = BigLotteryChooseNum_lelun(self.driver)
     blcl = BigLotteryConfirmLottery_lelun(self.driver)
     cl = ConfirmLottery_lelun(self.driver)
     od = OrderDetails_lelun(self.driver)
     ulcn = UnionLottoChooseNumber_lelun(self.driver)
     blcn.l_red_label5()  # 选择5个红球
     blcn.l_bule_label2()  # 选择2个蓝球
     ulcn.Confirm_button()  # 点击确认选号按钮
     mu1 = cl.Select_number()  # 读取投注确认页所选号码
     cl.submit_order_to_station_owner_button()  # 提交订单给站主按钮
     cl.confirm_and_pay_button()  # 点击确认支付
     hp.Moveable_float_close()
     sos.Continue_buy()  #点击继续购买此彩种
     blcn.l_red_label5()  # 选择5个红球
     blcn.l_bule_label2()  # 选择2个蓝球
     ulcn.Confirm_button()  # 点击确认选号按钮
 def test_singele_lottery_case(self):
     '''单式多注,进入智能追号页面,默认追期,提交订单'''
     hp = HomePage_lelun(self.driver)
     ulcn = UnionLottoChooseNumber_lelun(self.driver)
     efcn = ElevenFiveChooseNumber_lelun(self.driver)
     efcl = EleChooseFiveConfirmLottery_lelun(self.driver)
     ssc_cl = CQSSCConfirmLottery_lelun(self.driver)
     od = OrderDetails_lelun(self.driver)
     l = Login_lelun(self.driver)
     sos = SubmitOrderSuccess_lelun(self.driver)
     cl = ConfirmLottery_lelun(self.driver)
     hp.open()
     hp.Moveable_float_close()
     hp.My_lottery_ticket()  # 点击我的彩票
     l.login_lelun()  # 登录
     hp.homepage_link()  # 点击首页
     hp.Moveable_float_close()
     hp.gd_11_5_link()  # 点击广西11选5链接
     efcn.spread_mode_button()  # 展开玩法
     efcn.mode_choose(23, 1)  # 广东11选5任选二
     ulcn.machine_choose_button()#点击机选
     ulcn.machine_choose_five_button()#点击机选5注
     text1 = efcl.lottery_chase_throw_text()
     self.assertIn("5注1期1倍", text1)
     ssc_cl.intelligently_chase_button()  # 点击智能追号
     ssc_cl.submit_button()  # 点击提交订单
Example #12
0
 def test_LotteryOderDetails_continue_buy_case(self):
     '''提交订单成功页,点击【继续购买该方案】,页面跳转至投注确认页'''
     ###点击进入大乐透进入大乐透选号页面###
     hp = HomePage_lelun(self.driver)
     hp.open()
     ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作
     hp.Moveable_float_close()
     l = Login_lelun(self.driver)
     hp.My_lottery_ticket()  # 点击我的彩票
     l.login_lelun()  # 点击登录
     sos = SubmitOrderSuccess_lelun(self.driver)
     hp.homepage_link()  # 点击首页
     hp.Moveable_float_close()
     hp.Lottery_link()  # 点击大乐透链接
     blcn = BigLotteryChooseNum_lelun(self.driver)
     blcl = BigLotteryConfirmLottery_lelun(self.driver)
     cl = ConfirmLottery_lelun(self.driver)
     od = OrderDetails_lelun(self.driver)
     ulcn = UnionLottoChooseNumber_lelun(self.driver)
     blcn.l_red_label5()  #选择5个红球
     blcn.l_bule_label2()  #选择2个蓝球
     ulcn.Confirm_button()  # 点击确认选号按钮
     mu1 = cl.Select_number()  #读取投注确认页所选号码
     cl.submit_order_to_station_owner_button()  #提交订单给站主按钮
     cl.confirm_and_pay_button()  #点击确认支付
     hp.Moveable_float_close()
     sos.check_order_details()  #点击查看订单详情
     mu2 = od.Betting_nu()  #读取订单详情页号码
     self.assertEqual(mu1, mu2, '订单详情页显示有误')
     od.Scheme()  #点击继续购买此方案
     mur = cl.confirm_num_page_text()
     self.assertEqual('提交订单给站主', mur)
Example #13
0
 def test_Lottery_multiphase_machine_single_radio_case(self):
     """选号页面,右上方隐藏的多期机选,点击追加单选按钮,提交订单"""
     ###点击进入大乐透进入大乐透选号页面###
     hp = HomePage_lelun(self.driver)
     hp.open()
     ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作
     hp.Moveable_float_close()
     l = Login_lelun(self.driver)
     hp.My_lottery_ticket()  # 点击我的彩票
     l.login_lelun()  # 点击登录
     hp.homepage_link()  # 点击首页
     hp.Moveable_float_close()
     hp.Lottery_link()  #点击大乐透链接
     blcn = BigLotteryChooseNum_lelun(self.driver)
     blcl = BigLotteryConfirmLottery_lelun(self.driver)
     cl = ConfirmLottery_lelun(self.driver)
     od = OrderDetails_lelun(self.driver)
     ulcn = UnionLottoChooseNumber_lelun(self.driver)
     ulcn.There_clock()  #点击。。。
     ulcn.Many_pause()  #点击多期机选
     ulcn.many_chase_radio()  #点击多期机选的单选按钮
     text1 = ulcn.many_machine_choose_text()
     ulcn.Many_pause_confirm()  #点击多期机选页的【提交订单】
     cl.confirm_and_pay_button()  # 点击“确认并支付”按钮
     '''断言验证提交订单成功'''
     sos = SubmitOrderSuccess_lelun(self.driver)
     hp.Moveable_float_close()
     text = sos.submit_order_success()
     self.assertEqual("订单提交成功", text, "提交订单失败")
Example #14
0
 def test_twostar_throw_chase2throw2_case(self):
     '''投注确认页,输入追2期投2倍,提交订单'''
     hp = HomePage_lelun(self.driver)
     hp.open()
     l = Login_lelun(self.driver)
     efcn = ElevenFiveChooseNumber_lelun(self.driver)
     ulcn = UnionLottoChooseNumber_lelun(self.driver)
     efcl = EleChooseFiveConfirmLottery_lelun(self.driver)
     cl = ConfirmLottery_lelun(self.driver)
     sos = SubmitOrderSuccess_lelun(self.driver)
     hp.Moveable_float_close()  # 点击关闭浮窗
     hp.My_lottery_ticket()  # 点击我的彩票
     l.login_lelun()  # 点击登录
     hp.homepage_link()  # 点击首页
     hp.cqssc_link()  # 点击重庆时时彩链接
     ssc_cn = CQSSC_ChooseNumber_lelun(self.driver)
     ssc_cn.play_mode()  # 选择模式
     ssc_cn.two_star()  # 选择两星
     ssc_cn.shiwei_random(2)
     ssc_cn.gewei_random(2)
     efcn.confirm_number_button()  # 点击确认选号
     efcl.chase_ticket_input(2)  #输入追2期
     efcl.throw_times_input(2)  #输入投注倍数2倍
     bb = efcl.lottery_chase_throw_text()  # 获取注数倍数
     self.assertIn("4注2期2倍", bb)
     efcl.submit_order_button()  # 点击提交订单给站主
     cl.confirm_and_pay_button()  # 点击确认并支付
     hp.Moveable_float_close()  # 如果出现浮层弹框,关闭
     text = sos.submit_order_success()  # 获取页面“订单提交成功”文本
     self.assertEqual("订单提交成功", text)
     trade_name = sos.trade_name_text()  # 获取页面商品名称文本
     self.assertIn("商品名称:乐秀赢球-重庆时时彩", trade_name)
 def test_bigsmall_choose_double_case(self):
     '''大小单双玩法,个位十位各选多个属性,确认选号,提交订单'''
     hp = HomePage_lelun(self.driver)
     hp.open()
     l = Login_lelun(self.driver)
     efcn = ElevenFiveChooseNumber_lelun(self.driver)
     efcl = EleChooseFiveConfirmLottery_lelun(self.driver)
     cl = ConfirmLottery_lelun(self.driver)
     sos = SubmitOrderSuccess_lelun(self.driver)
     hp.Moveable_float_close()  # 点击关闭浮窗
     hp.My_lottery_ticket()  # 点击我的彩票
     l.login_lelun()  # 点击登录
     hp.homepage_link()  # 点击首页
     hp.cqssc_link()  # 点击重庆时时彩链接
     ssc_cn = CQSSC_ChooseNumber_lelun(self.driver)
     ssc_cn.play_mode()  # 选择模式
     ssc_cn.big_little()  # 选择大小单双
     ssc_cn.ds_shiwei_all()  # 十位选择所有号码
     ssc_cn.ds_gewei_all()  # 个位选择所有号码
     aa = efcn.total_buy_text()
     self.assertIn("16注 ", aa)
     efcn.confirm_number_button()  # 点击确认选号
     efcl.submit_order_button()  # 点击提交订单给站主
     cl.confirm_and_pay_button()  # 点击确认并支付
     hp.Moveable_float_close()  # 如果出现浮层弹框,关闭
     text = sos.submit_order_success()  # 获取页面“订单提交成功”文本
     self.assertEqual("订单提交成功", text)
     trade_name = sos.trade_name_text()  # 获取页面商品名称文本
     self.assertIn("商品名称:乐仑炫彩-重庆时时彩", trade_name)
Example #16
0
 def test_patintball_rqspf_input10000times_case(self):  ##mj20171213
     '''选号页面,选择八场对阵,增加倍数为10000倍,提交订单'''
     hp = HomePage_lelun(self.driver)
     pbcn = PaintBallChooseNumber_lelun(self.driver)
     pbc = PaintBallConfirm_lelun(self.driver)
     cl = ConfirmLottery_lelun(self.driver)
     l = Login_lelun(self.driver)
     sos = SubmitOrderSuccess_lelun(self.driver)
     hp.open()
     hp.Moveable_float_close()
     hp.My_lottery_ticket()  # 点击我的彩票
     l.login_lelun()  # 点击登录
     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_bigsmall_choose_all_cancel_case(self):
     '''大小单双玩法,个位十位选择所有属性并取消'''
     hp = HomePage_lelun(self.driver)
     hp.open()
     l = Login_lelun(self.driver)
     efcn = ElevenFiveChooseNumber_lelun(self.driver)
     efcl = EleChooseFiveConfirmLottery_lelun(self.driver)
     cl = ConfirmLottery_lelun(self.driver)
     sos = SubmitOrderSuccess_lelun(self.driver)
     hp.Moveable_float_close()  # 点击关闭浮窗
     hp.My_lottery_ticket()  # 点击我的彩票
     l.login_lelun()  # 点击登录
     hp.homepage_link()  # 点击首页
     hp.cqssc_link()  # 点击重庆时时彩链接
     ssc_cn = CQSSC_ChooseNumber_lelun(self.driver)
     ssc_cn.play_mode()  # 选择模式
     ssc_cn.big_little()  # 选择大小单双
     ssc_cn.ds_shiwei_all()  # 十位选择所有号码
     ssc_cn.ds_gewei_all()  # 个位选择所有号码
     aa = efcn.total_buy_text()
     self.assertIn("16注 ", aa)
     ssc_cn.ds_shiwei_all()  # 十位选择取消所有号码
     ssc_cn.ds_gewei_all()  # 个位选择取消所有号码
     aa = efcn.total_buy_text()
     self.assertIn("请至少每位选择1种属性", aa)
Example #18
0
 def test_optimize_award_add_lottery_sum_restore_case(self):
     '''选择五场对阵,点击奖金优化,进入奖金优化页面,增加投注金额,然后点击还原选项,提交订单'''
     hp = HomePage_lelun(self.driver)
     pbcn = PaintBallChooseNumber_lelun(self.driver)
     cl = ConfirmLottery_lelun(self.driver)
     pbc = PaintBallConfirm_lelun(self.driver)
     l = Login_lelun(self.driver)
     sos = SubmitOrderSuccess_lelun(self.driver)
     hp.open()
     ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作
     hp.Moveable_float_close()
     hp.My_lottery_ticket()  # 点击我的彩票
     l.login_lelun()  # 点击登录
     hp.homepage_link()  # 点击首页
     hp.paintball_link()  ##点击竞彩足球
     pbcn.Play_f()  ###点击玩法
     pbcn.Play_rqspf()  ##点击让球胜平负
     aa = pbcn.rqspf_choose(5)  ###随机点击5场比赛
     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()  ##点击奖金优化
         mix_text1 = pbc.maximum_text()
         pbc.optimize_add_money_input(200)  # 修改奖金优化金额
         pbc.restroe_button()  #点击还原选项按钮
         mix_text3 = pbc.maximum_text()
         print('third%s' % mix_text3)
         self.assertEqual(mix_text1, mix_text3)
         pbc.submit_order()  # 点击提交订单给站主
         cl.confirm_and_pay_button()  # 点击确认支付
         text1 = sos.submit_order_success()  # 获取提交订单成功文本
         self.assertEqual('订单提交成功', text1)
Example #19
0
 def test_fivestar_choose_all_cancel_case(self):
     '''五星直选玩法,选择所有选号,再次点击取消流程'''
     hp = HomePage_lelun(self.driver)
     hp.open()
     l = Login_lelun(self.driver)
     efcn = ElevenFiveChooseNumber_lelun(self.driver)
     hp.Moveable_float_close()  # 点击关闭浮窗
     hp.My_lottery_ticket()  # 点击我的彩票
     l.login_lelun()  # 点击登录
     hp.homepage_link()  # 点击首页
     hp.cqssc_link()  # 点击重庆时时彩链接
     ssc_cn = CQSSC_ChooseNumber_lelun(self.driver)
     ssc_cn.play_mode()  # 选择模式
     ssc_cn.five_star()  # 选择五星
     ssc_cn.wanwei_all()
     ssc_cn.qianwei_all()
     ssc_cn.baiwei_all()
     self.driver.execute_script("window.scroll(0,300)")
     ssc_cn.shiwei_all()
     ssc_cn.gewei_all()
     aa = efcn.total_buy_text()
     self.assertIn("100000注 ", aa)
     self.driver.execute_script("window.scroll(0,0)")
     ssc_cn.wanwei_all()
     ssc_cn.qianwei_all()
     ssc_cn.baiwei_all()
     self.driver.execute_script("window.scroll(0,300)")
     ssc_cn.shiwei_all()
     ssc_cn.gewei_all()
     aa = efcn.total_buy_text()
     self.assertIn("请每位至少选择1个号码", aa)
Example #20
0
 def test_immediately_sorce_lottery_case(self):
     '''在投注选号页面,点击右上角即时比分,打开赛事分析数据,点击页面下方的投注竞彩足球按钮,页面跳转到选号页,选择两场比赛,提交订单'''
     hp = HomePage_lelun(self.driver)
     pbcn = PaintBallChooseNumber_lelun(self.driver)
     cl = ConfirmLottery_lelun(self.driver)
     pbc = PaintBallConfirm_lelun(self.driver)
     l = Login_lelun(self.driver)
     sos = SubmitOrderSuccess_lelun(self.driver)
     t = There_D_choosenumber_lelun(self.driver)
     hp.open()
     ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作
     hp.Moveable_float_close()
     hp.My_lottery_ticket()  # 点击我的彩票
     l.login_lelun()  # 点击登录
     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()  #点击确认支付
             text1 = sos.submit_order_success()  #获取提交订单成功文本
             self.assertEqual('订单提交成功', text1)
Example #21
0
 def test_fivestar_choose_all_case(self):
     '''五星直选玩法,每位各选所有号码'''
     hp = HomePage_lelun(self.driver)
     hp.open()
     l = Login_lelun(self.driver)
     efcn = ElevenFiveChooseNumber_lelun(self.driver)
     efcl = EleChooseFiveConfirmLottery_lelun(self.driver)
     cl = ConfirmLottery_lelun(self.driver)
     sos = SubmitOrderSuccess_lelun(self.driver)
     hp.Moveable_float_close()  # 点击关闭浮窗
     hp.My_lottery_ticket()  # 点击我的彩票
     l.login_lelun()  # 点击登录
     hp.homepage_link()  # 点击首页
     hp.cqssc_link()  # 点击重庆时时彩链接
     ssc_cn = CQSSC_ChooseNumber_lelun(self.driver)
     ssc_cn.play_mode()  # 选择模式
     ssc_cn.five_star()  # 选择五星
     ssc_cn.wanwei_all()
     ssc_cn.qianwei_all()
     ssc_cn.baiwei_all()
     self.driver.execute_script("window.scroll(0,300)")
     ssc_cn.shiwei_all()
     ssc_cn.gewei_all()
     aa = efcn.total_buy_text()
     self.assertIn("100000注 ", aa)
     efcn.confirm_number_button()  # 点击确认选号
     efcl.submit_order_button()  # 点击提交订单给站主
     cl.confirm_and_pay_button()  # 点击确认并支付
     toast=cl.out_max_pay()
     self.assertEqual("投注金额不能大于100000元",toast)
Example #22
0
 def test_lottery_success_page_continue_lottery_case(
         self):  #####################-----------------mj20171215
     '''验证投注成功页【继续投注该彩种】按钮,点击页面跳转至竞彩足球选号页面'''
     hp = HomePage_lelun(self.driver)
     pbcn = PaintBallChooseNumber_lelun(self.driver)
     cl = ConfirmLottery_lelun(self.driver)
     pbc = PaintBallConfirm_lelun(self.driver)
     l = Login_lelun(self.driver)
     sos = SubmitOrderSuccess_lelun(self.driver)
     t = There_D_choosenumber_lelun(self.driver)
     hp.open()
     ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作
     hp.Moveable_float_close()
     hp.My_lottery_ticket()  # 点击我的彩票
     l.login_lelun()  # 点击登录
     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()  #点击确认支付
         sos.Continue_buy()  #点击【继续投注该彩种】
         pbcn.Play_f()  ###点击玩法
         pbcn.Play_rqspf()  ##点击让球胜平负
         bb = pbcn.rqspf_choose(2)  #选择2场赛事
         if bb == 2:
             pbcn.confirm_match()  #点击确认赛事
             cl.submit_order_to_station_owner_button()  #点击提交订单给站主
             cl.confirm_and_pay_button()  #点击确认支付
             text1 = sos.submit_order_success()  # 获取提交订单成功文本
             self.assertEqual('订单提交成功', text1)
 def test_Event_analysis_data_case(self):
     """竞蓝选号页,点击对阵左边下拉三角,展开赛事分析数据,点击页面下方的投注竞彩篮球按钮,页面跳转到选号页"""
     ha = HomePage_lelun(self.driver)
     hb = PaintBallChooseNumber_lelun(self.driver)
     hb1 = HaobcChooseNumber_lelun(self.driver)
     hc = ConfirmLottery_lelun(self.driver)
     hc1 = PaintBallConfirm_lelun(self.driver)
     hl = Login_lelun(self.driver)
     hd = SubmitOrderSuccess_lelun(self.driver)
     ha.open()
     ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作
     ha.Moveable_float_close()
     ha.My_lottery_ticket()  # 点击我的彩票
     hl.login_lelun()  # 点击登录
     ha.homepage_link()  # 点击首页
     ha.haobc_link()  # 点击竞彩蓝球
     a = hb1.Event_analysis_data()  ##点击赛事向下箭头
     if a == 1:
         hb1.Event_analysis_data_click()  ###点击数据分析
         hb1.Race_basketball()  # 点击【投注竞彩蓝球】
         hb1.Basketball_mix_nus_X(2)  ###随机点击8场比赛
         hb.confirm_match()  ###点击已选N场比赛
         hc.submit_order_to_station_owner_button()  ####点击提交给站主
         hc.confirm_and_pay_button()  # 点击确认支付
         text1 = hd.submit_order_success()  # 获取提交订单成功文本
         self.assertEqual('订单提交成功', text1)
Example #24
0
 def test_check_order_details_case(self):
     '''验证点击【查看订单详情】页面跳转至订单详情页'''
     hp = HomePage_lelun(self.driver)
     pbcn = PaintBallChooseNumber_lelun(self.driver)
     cl = ConfirmLottery_lelun(self.driver)
     pbc = PaintBallConfirm_lelun(self.driver)
     l = Login_lelun(self.driver)
     sos = SubmitOrderSuccess_lelun(self.driver)
     od = OrderDetails_lelun(self.driver)
     hp.open()
     ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作
     hp.Moveable_float_close()
     hp.My_lottery_ticket()  # 点击我的彩票
     l.login_lelun()  # 点击登录
     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()  #点击确认支付
         sos.check_order_details()  #点击查看详情
         text1 = od.scheme_details()  #获取订单详情页文本
         self.assertEqual("方案详情", text1, '页面未跳转至订单详情页')
 def test_patintball_rqspf_input10000times_case(self):  ##mj20171213
     '''选号页面,选择八场对阵,增加倍数为10000倍,提交订单'''
     ha = HomePage_lelun(self.driver)
     hb = PaintBallChooseNumber_lelun(self.driver)
     hb1 = HaobcChooseNumber_lelun(self.driver)
     hc = ConfirmLottery_lelun(self.driver)
     hc1 = PaintBallConfirm_lelun(self.driver)
     hc2 = ArrangeFiveConfirmLottery_lelun(self.driver)
     hl = Login_lelun(self.driver)
     hd = SubmitOrderSuccess_lelun(self.driver)
     ha.open()
     ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作
     ha.Moveable_float_close()
     ha.My_lottery_ticket()  # 点击我的彩票
     hl.login_lelun()  # 点击登录
     ha.homepage_link()  # 点击首页
     ha.haobc_link()  # 点击竞彩蓝球
     hb.Play_f()  # 选择玩法
     hb.Play_mix()  ###点击混合投注
     aa = hb1.Basketball_mix_nus_X(8)  # 选择比赛
     if aa == 8:
         hb.confirm_match()  ###点击已选N场比赛
         hc1.Times_input_click()  # 点击投注倍数
         hc1.Times_input(10000)  #输入投注10000倍
         hc.submit_order_to_station_owner_button()  # 提交订单给站主
         hc.confirm_and_pay_button()  # 点击确认支付
         text1 = hd.submit_order_success()  # 获取提交订单成功文本
         self.assertEqual('订单提交成功', text1)
Example #26
0
 def test_function_instruct_case(self):
     '''验证订单详情页【功能说明】,能正常打开和关闭'''
     hp = HomePage_lelun(self.driver)
     pbcn = PaintBallChooseNumber_lelun(self.driver)
     cl = ConfirmLottery_lelun(self.driver)
     pbc = PaintBallConfirm_lelun(self.driver)
     l = Login_lelun(self.driver)
     sos = SubmitOrderSuccess_lelun(self.driver)
     od = OrderDetails_lelun(self.driver)
     hp.open()
     ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作
     hp.Moveable_float_close()
     hp.My_lottery_ticket()  # 点击我的彩票
     l.login_lelun()  # 点击登录
     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()  # 点击确认支付
         sos.check_order_details()  # 点击查看详情
         self.driver.execute_script("window.scroll(0,200)")  #鼠标滑动200px
         od.function_instruct()  #点击功能说明
         od.i_know()  #点击【知道了】
 def test_continue_toggle_play_case(self):
     """胜负玩法,点击编辑赛事,回到选号选号页面,切换玩法为混合投注"""
     ha = HomePage_lelun(self.driver)
     hb = PaintBallChooseNumber_lelun(self.driver)
     hb1 = HaobcChooseNumber_lelun(self.driver)
     hc = ConfirmLottery_lelun(self.driver)
     hc1 = PaintBallConfirm_lelun(self.driver)
     hc2 = HaobcConfirm_lelun(self.driver)
     hl = Login_lelun(self.driver)
     hd = SubmitOrderSuccess_lelun(self.driver)
     ha.open()
     ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作
     ha.Moveable_float_close()
     ha.My_lottery_ticket()  # 点击我的彩票
     hl.login_lelun()  # 点击登录
     ha.homepage_link()  # 点击首页
     ha.haobc_link()  # 点击竞彩蓝球
     hb.Play_f()  # 选择玩法
     hb1.Play_sf()  #选择胜负
     aa = hb1.sf_choose(2)  #选择比赛
     if aa == 2:
         hb.confirm_match()  ###点击已选N场比赛
         hc2.edit_event()  ###点击编辑/添加赛事
         hb.Play_f()  # 选择玩法
         hb.Play_mix()  ###点击混合投注
         aa = hb1.Basketball_mix_nus_X(2)  # 选择比赛
         if aa == 2:
             hb.confirm_match()  ###点击已选N场比赛
             hc.submit_order_to_station_owner_button()  # 提交订单给站主
             hc.confirm_and_pay_button()  # 点击确认支付
             text1 = hd.submit_order_success()  # 获取提交订单成功文本
             self.assertEqual('订单提交成功', text1)
Example #28
0
 def test_oder_details_page_lottery_paintball_case(self):
     '''验证订单详情页【点击投注竞彩足球】按钮,点击页面跳转至,竞彩足球选号页面'''
     hp = HomePage_lelun(self.driver)
     pbcn = PaintBallChooseNumber_lelun(self.driver)
     cl = ConfirmLottery_lelun(self.driver)
     pbc = PaintBallConfirm_lelun(self.driver)
     l = Login_lelun(self.driver)
     sos = SubmitOrderSuccess_lelun(self.driver)
     od = OrderDetails_lelun(self.driver)
     hp.open()
     ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作
     hp.Moveable_float_close()
     hp.My_lottery_ticket()  # 点击我的彩票
     l.login_lelun()  # 点击登录
     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()  # 点击确认支付
         sos.check_order_details()  # 点击查看详情
         od.continue_buy()  #验证订单详情页【点击投注竞彩足球】按钮
         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()  # 点击确认支付
             text1 = sos.submit_order_success()  # 获取提交订单成功文本
             self.assertEqual('订单提交成功', text1)
 def test_onestar_choose_all_case(self):
     '''一星玩法,选择所有个号码,提交订单测试'''
     hp = HomePage_lelun(self.driver)
     hp.open()
     l = Login_lelun(self.driver)
     efcn = ElevenFiveChooseNumber_lelun(self.driver)
     efcl = EleChooseFiveConfirmLottery_lelun(self.driver)
     cl = ConfirmLottery_lelun(self.driver)
     sos = SubmitOrderSuccess_lelun(self.driver)
     hp.Moveable_float_close()  # 点击关闭浮窗
     hp.My_lottery_ticket()  # 点击我的彩票
     l.login_lelun()  # 点击登录
     hp.homepage_link()  # 点击首页
     hp.cqssc_link()  # 点击重庆时时彩链接
     ssc_cn = CQSSC_ChooseNumber_lelun(self.driver)
     ssc_cn.play_mode()  # 选择模式
     ssc_cn.one_star()  # 选择一星
     ssc_cn.gewei_all()  # 选择9个号码
     aa = efcn.total_buy_text()
     self.assertIn("10注 ", aa)
     efcn.confirm_number_button()  # 点击确认选号
     efcl.submit_order_button()  # 点击提交订单给站主
     cl.confirm_and_pay_button()  # 点击确认并支付
     hp.Moveable_float_close()  # 如果出现浮层弹框,关闭
     text = sos.submit_order_success()  # 获取页面“订单提交成功”文本
     self.assertEqual("订单提交成功", text)
     trade_name = sos.trade_name_text()  # 获取页面商品名称文本
     self.assertIn("商品名称:乐秀赢球-重庆时时彩", trade_name)
Example #30
0
 def test_dantuo_optiops2_intelligent_chase_case(self):  ###mj20171211
     '''胆拖投注,进入智能追号页面,默认追期,提交订单'''
     hp = HomePage_lelun(self.driver)
     hp.open()
     ulcn = UnionLottoChooseNumber_lelun(self.driver)
     ssc_cl = CQSSCConfirmLottery_lelun(self.driver)
     uncl = ConfirmLottery_lelun(self.driver)
     efcl = EleChooseFiveConfirmLottery_lelun(self.driver)
     sos = SubmitOrderSuccess_lelun(self.driver)
     od = OrderDetails_lelun(self.driver)
     ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作
     hp.Moveable_float_close()
     hp.My_lottery_ticket()  #点击我的彩票
     l = Login_lelun(self.driver)
     l.login_lelun()  # 点击登录
     hp.Home_page()  #点击首页
     hp.Moveable_float_close()
     hp.gx_11_5_link()  # 点击广西11选5链接
     efcn = ElevenFiveChooseNumber_lelun(self.driver)
     efcn.countdown_text()  # 检查“距离第xxx期截止:”文案是否存在
     efcn.spread_mode_button()  ##选择展开玩法
     efcn.mode_choose(24, 16)  # 选择广西11选5胆拖模式任选二玩法
     efcn.dantuo_choose_num(1, 2)  # 选取1个胆码2个拖码
     total = efcn.total_buy_text()  # 获取注数文本
     self.assertIn("2", total)  # 检查2注
     efcn.confirm_number_button()  # 点击确认选号
     ssc_cl.intelligently_chase_button()  #点击智能选号
     ssc_cl.submit_button()  #点击智能追号的提交按钮
     uncl.confirm_and_pay_button()  # 点击确认支付
     hp.Moveable_float_close()  # 如果出现浮层弹框,关闭
     text = sos.submit_order_success()  # 获取页面“订单提交成功”文本
     self.assertEqual("订单提交成功", text)
     trade_name = sos.trade_name_text()  # 获取页面商品名称文本
     self.assertIn("商品名称:乐米彩票-广西11选5", trade_name)