def test_machine_choose_ten_delete_all_cancel_case(self):
     '''机选10注,投注确认页点击删除选号按钮并取消删除流程测试'''
     hp = HomePage_lelun(self.driver)
     cl = ConfirmLottery_lelun(self.driver)
     hp.open()
     ulcn = UnionLottoChooseNumber_lelun(self.driver)
     ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作
     hp.Moveable_float_close()
     hp.sd_11_5_link()  # 点击山东11选5链接
     efcn = ElevenFiveChooseNumber_lelun(self.driver)
     efcn.countdown_text()  # 检查“距离第xxx期截止:”文案是否存在
     ulcn.machine_choose_button()  # 点击机选
     ulcn.machine_choose_ten_button()  # 机选10注
     ecfcl = EleChooseFiveConfirmLottery_lelun(self.driver)
     ecfcl.countdown_text()  # 检查倒计时文案
     check = ecfcl.lottery_chase_throw_text()
     self.assertIn("10注1期1倍", check)
     cl.delete_all_num_button()  # 点击删除所有选号
     cl.cancel_delete_button()  # 点击取消删除选号
     recheck = ecfcl.lottery_chase_throw_text()
     self.assertIn("10注1期1倍", recheck)
     ecfcl.submit_order_button()  # 提交订单给站主
     l = Login_lelun(self.driver)
     l.login_lelun()  # 登录
     ecfcl.submit_order_button()  # 提交订单给站主
     cl.confirm_and_pay_button()  # 点击确认并支付
     sos = SubmitOrderSuccess_lelun(self.driver)
     text = sos.submit_order_success()  # 获取页面“订单提交成功”文本
     self.assertEqual("订单提交成功", text)
     hp.Moveable_float_close()  # 如果出现浮层弹框,关闭
     trade_name = sos.trade_name_text()  # 获取页面商品名称文本
     self.assertIn("商品名称:乐仑炫彩-山东11选5", trade_name)
     sos.check_order_details()  # 点击查看详情
     od = OrderDetails_lelun(self.driver)
     od.order_details_checks()  # 检查订单详情页页面元素
Exemplo n.º 2
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_UnionLotto_Hand_r18b16_case(self):
     '''双色球选取18个红球,16个蓝球提示“投注金额不能大于100000元”测试'''
     ###点击进入双色球选号页面###
     hp = HomePage_lelun(self.driver)
     hp.open()
     ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作
     hp.Moveable_float_close()
     hp.UnionLotto_link()  # 点击双色球链接
     ulcn = UnionLottoChooseNumber_lelun(self.driver)
     ulcn.u_red_label18()  # 选取18个红球
     ulcn.u_bule_label16()  #选取16个蓝球
     ulcn.Confirm_button()  # 点击确认选号按钮
     cl = ConfirmLottery_lelun(self.driver)
     cl.submit_order_to_station_owner_button()  # 提交订单给站主
     l = Login_lelun(self.driver)  #####用户登录######
     l.login_lelun()
     cl.submit_order_to_station_owner_button()  # 点击“提交订单给站主”按钮
     cl.confirm_and_pay_button()  #点击确认并支付按钮
     text = cl.out_max_pay()  #获取超额提示信息文本
     self.assertIn("投注金额不能大于100000元", text)
     cl.re_selection_num()  #点击重新选号链接
     ulcn.u_bule_label16()  #取消选中的16个蓝球
     ulcn.u_bule_label1()  #选取1个蓝球
     ulcn.Confirm_button()  #点击确认选号
     cl.submit_order_to_station_owner_button()  #提交订单给站主
     cl.confirm_and_pay_button()  #确认支付
     '''断言验证提交订单成功'''
     sos = SubmitOrderSuccess_lelun(self.driver)
     hp.Moveable_float_close()  # 关闭悬浮窗口
     text = sos.submit_order_success()
     self.assertEqual("订单提交成功", text, "提交订单失败")
Exemplo n.º 4
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)
Exemplo n.º 5
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)
Exemplo n.º 6
0
 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()  # 点击提交订单
Exemplo n.º 7
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)
Exemplo n.º 8
0
 def test_Lottery_Hand_r18b16_case(self):
     '''大乐透选取18个红球,12个蓝球提示“投注金额不能大于100000元”测试'''
     ###点击进入大乐透选号页面###
     hp = HomePage_lelun(self.driver)
     hp.open()
     ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作
     hp.Moveable_float_close()
     hp.Lottery_link()  # 点击大乐透链接
     blcn = BigLotteryChooseNum_lelun(self.driver)
     blcn.l_red_label18()  # 选取18个红球
     blcn.l_bule_label12()  #选取12个蓝球
     ulcn = UnionLottoChooseNumber_lelun(self.driver)
     ulcn.Confirm_button()  # 点击确认选号按钮
     cl = ConfirmLottery_lelun(self.driver)
     cl.submit_order_to_station_owner_button()  # 提交订单给站主
     l = Login_lelun(self.driver)  #####用户登录######
     #l.new_user_login_tab()  # 切换到新用户登录
     l.login_lelun()
     cl.submit_order_to_station_owner_button()  # 点击“提交订单给站主”按钮
     cl.confirm_and_pay_button()  #点击确认并支付按钮
     text = cl.out_max_pay()  #获取超额提示信息文本
     self.assertIn("投注金额不能大于100000元", text)
     cl.re_selection_num()  #点击重新选号链接
     blcn.l_bule_label12()  #取消选中的12个蓝球
     blcn.l_bule_label2()  #选取2个蓝球
     ulcn.Confirm_button()  #点击确认选号
     sleep(2)  #系统限制,操作订单不能过于频繁
     cl.submit_order_to_station_owner_button()  #提交订单给站主
     cl.confirm_and_pay_button()  #确认支付
     '''断言验证提交订单成功'''
     sos = SubmitOrderSuccess_lelun(self.driver)
     hp.Moveable_float_close()
     text = sos.submit_order_success()
     self.assertEqual("订单提交成功", text, "提交订单失败")
Exemplo n.º 9
0
 def test_Lottery_re_r18b1_case(self):
     '''大乐透重复选号取消选中测试'''
     ###点击进入大乐透选号页面###
     hp = HomePage_lelun(self.driver)
     hp.open()
     ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作
     hp.Moveable_float_close()
     hp.Lottery_link()  # 点击大乐透链接
     blcn = BigLotteryChooseNum_lelun(self.driver)
     blcn.l_rechoose_red_label18()  #随机选中18个红球,再取消选中的红球
     blcn.l_red_label18()  #重新选取18个红球
     blcn.l_bule_label2()  #选取2个蓝球
     ulcn = UnionLottoChooseNumber_lelun(self.driver)
     ulcn.Confirm_button()  #点击确认选号按钮
     cl = ConfirmLottery_lelun(self.driver)
     cl.submit_order_to_station_owner_button()  # 提交订单给站主
     l = Login_lelun(self.driver)  #####用户登录######
     #l.new_user_login_tab()  # 切换到新用户登录
     l.login_lelun()
     cl.submit_order_to_station_owner_button()  # 点击“提交订单给站主”按钮
     cl.confirm_and_pay_button()  # 点击确认并支付按钮
     '''断言验证提交订单成功'''
     sos = SubmitOrderSuccess_lelun(self.driver)
     hp.Moveable_float_close()
     text = sos.submit_order_success()
     self.assertEqual("订单提交成功", text, "提交订单失败")
 def test_Lottery_Machine_Choose_ten_case(self):
     '''大乐透机选10注,追加10期测试'''
     hp = HomePage_lelun(self.driver)
     hp.open()
     hp.Moveable_float_close()  # 关闭悬浮窗口
     hp.Lottery_link()  # 点击大乐透链接
     ulcn = UnionLottoChooseNumber_lelun(self.driver)
     ulcn.machine_choose_button()  # 点击机选按钮
     ulcn.machine_choose_ten_button()  # 点击机选5注
     cl = ConfirmLottery_lelun(self.driver)
     blcl = BigLotteryConfirmLottery_lelun(self.driver)
     cl.chase_ticket_button()  # 点击追xx期
     blcl.additional_radio_button()  # 点击追加单选按钮
     cl.chase_ticket_button_ten()  # 点击追加10期单选按钮
     blcl.l_throw_times_button_sub(3)  #输入投注倍数,点击“-”按钮
     cl.submit_order_to_station_owner_button()  # 点击提交订单给站主
     l = Login_lelun(self.driver)
     #l.new_user_login_tab()  # 切换到新用户登录
     l.login_lelun()
     cl.submit_order_to_station_owner_button()  # 点击“提交订单给站主”按钮
     cl.confirm_and_pay_button()  # 点击“确认并支付”按钮
     '''断言验证提交订单成功'''
     sos = SubmitOrderSuccess_lelun(self.driver)
     hp.Moveable_float_close()  # 关闭悬浮窗口
     text = sos.submit_order_success()
     self.assertEqual("订单提交成功", text, "提交订单失败")
     # 返回首页
     sos.return_home()
Exemplo n.º 11
0
 def test_Lottery_Hand_r19_case(self):
     '''大乐透选取19个红球,第19个红球提示“红球不能超过18个”测试'''
     ###点击进入大乐透选号页面###
     hp = HomePage_lelun(self.driver)
     hp.open()
     ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作
     hp.Moveable_float_close()
     hp.Lottery_link()  # 点击大乐透链接
     blcn = BigLotteryChooseNum_lelun(self.driver)
     blcn.l_red_label19()  # 选取19个红球
     text = blcn.out_of_num()  #获取超过18个红球时的toast提示信息
     self.assertIn("红球不能超过18个", text)
     blcn.l_bule_label2()  #选取2个蓝球
     ulcn = UnionLottoChooseNumber_lelun(self.driver)
     ulcn.Confirm_button()  # 点击确认选号按钮
     cl = ConfirmLottery_lelun(self.driver)
     cl.submit_order_to_station_owner_button()  # 提交订单给站主
     l = Login_lelun(self.driver)  #####用户登录######
     #l.new_user_login_tab()  # 切换到新用户登录
     l.login_lelun()
     cl.submit_order_to_station_owner_button()  # 点击“提交订单给站主”按钮
     cl.confirm_and_pay_button()  # 点击“确认并支付”按钮
     '''断言验证提交订单成功'''
     sos = SubmitOrderSuccess_lelun(self.driver)
     hp.Moveable_float_close()
     text = sos.submit_order_success()
     self.assertEqual("订单提交成功", text, "提交订单失败")
 def test_Lottery_Machine_delete_all_num_cancel(self):
     '''测试提交订单页删除所有选号按钮,取消删除'''
     hp = HomePage_lelun(self.driver)
     hp.open()
     hp.Moveable_float_close()  # 关闭悬浮窗口
     hp.Lottery_link()  # 点击大乐透链接
     ulcn = UnionLottoChooseNumber_lelun(self.driver)
     ulcn.machine_choose_button()  # 点击机选按钮
     ulcn.machine_choose_five_button()  # 点击机选5注
     cl = ConfirmLottery_lelun(self.driver)
     cl.delete_all_num_button()  # 点击删除所有选号按钮
     cl.cancel_delete_button()  # 点击取消删除按钮
     '''断言验证取消删除成功'''
     confirm_catchectic_text = cl.confirm_num_page_text()
     self.assertEqual("提交订单给站主", confirm_catchectic_text)
     print("我已放弃删除,回到了" + confirm_catchectic_text + "页")
     cl.submit_order_to_station_owner_button()  # 提交订单给站主
     l = Login_lelun(self.driver)
     #l.new_user_login_tab()  # 切换到新用户登录
     l.login_lelun()
     cl.submit_order_to_station_owner_button()  # 点击“提交订单给站主”按钮
     cl.confirm_and_pay_button()  # 点击“确认并支付”按钮
     '''断言验证提交订单成功'''
     sos = SubmitOrderSuccess_lelun(self.driver)
     hp.Moveable_float_close()  # 关闭悬浮窗口
     text = sos.submit_order_success()
     self.assertEqual("订单提交成功", text, "提交订单失败")
 def test_Lottery_Machine_delete_all_num(self):
     '''测试提交订单页"删除所有选号"按钮,确认删除'''
     hp = HomePage_lelun(self.driver)
     hp.open()
     hp.Moveable_float_close()  # 关闭悬浮窗口
     hp.Lottery_link()  # 点击大乐透链接
     ulcn = UnionLottoChooseNumber_lelun(self.driver)
     ulcn.machine_choose_button()  # 点击机选按钮
     ulcn.machine_choose_five_button()  # 点击机选5注
     cl = ConfirmLottery_lelun(self.driver)
     cl.delete_all_num_button()  #点击删除所有选号按钮
     cl.confirm_delete_button()  #点击确认删除按钮
     ulcn.machine_choose_button()  # 点击机选按钮
     ulcn.machine_choose_one_button()  #点击机选1注
     ulcn.Confirm_button()  #确认选号
     cl.submit_order_to_station_owner_button()  # 提交订单给站主
     l = Login_lelun(self.driver)
     #l.new_user_login_tab()  # 切换到新用户登录
     l.login_lelun()
     cl.submit_order_to_station_owner_button()  # 点击“提交订单给站主”按钮
     cl.confirm_and_pay_button()  # 点击“确认并支付”按钮
     '''断言验证提交订单成功'''
     sos = SubmitOrderSuccess_lelun(self.driver)
     hp.Moveable_float_close()  # 关闭悬浮窗口
     text = sos.submit_order_success()
     self.assertEqual("订单提交成功", text, "提交订单失败")
 def test_Lottery_Machine_choose_one_button_double_delete_case(self):
     '''复式,验证删除流程'''
     hp = HomePage_lelun(self.driver)
     hp.open()
     hp.Moveable_float_close()  # 关闭悬浮窗口
     hp.Lottery_link()  # 点击大乐透链接
     ulcn = UnionLottoChooseNumber_lelun(self.driver)
     blcn = BigLotteryChooseNum_lelun(self.driver)
     ulcn.machine_choose_button()  # 点击机选按钮
     ulcn.machine_choose_one_button()  # 点击机选一注
     ulcn.Confirm_button()  # 点击确认选号按钮
     cl = ConfirmLottery_lelun(self.driver)
     cl.delete_all_num_button()  #点击删除所有按钮
     cl.confirm_delete_button()  #确认删除
     blcn.l_red_label18()  # 任意选择18个红球
     blcn.l_bule_label2()  # 任意选择2个蓝球
     ulcn.Confirm_button()  # 点击确认选号按钮
     cl.submit_order_to_station_owner_button()  #提交订单给站主
     l = Login_lelun(self.driver)
     #l.new_user_login_tab()  # 切换到新用户登录
     l.login_lelun()
     cl.submit_order_to_station_owner_button()  # 点击“提交订单给站主”按钮
     cl.confirm_and_pay_button()  # 点击“确认并支付”按钮
     '''断言验证提交订单成功'''
     sos = SubmitOrderSuccess_lelun(self.driver)
     hp.Moveable_float_close()  # 关闭悬浮窗口
     text = sos.submit_order_success()
     self.assertEqual("订单提交成功", text, "提交订单失败")
Exemplo n.º 15
0
 def test_Investment_risk_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.gd_11_5_link()  # 点击广东11选5链接
     efcn.spread_mode_button()  # 展开玩法
     efcn.mode_choose(23, 1)  # 广东11选5任选二
     efcn.hand_options(2)  # 任选两个号
     sleep(2)
     efcn.confirm_number_button()  # 点击确认选号
     num1 = efcl.Ele_five_select_number()  # 获取投注确认页的选号
     cl.Risk()#点击《风险提示》
     cl.Risk_know()#点击《我知道了》
     efcl.submit_order_button()  # 点击提交订单给站主
     l.login_lelun()  # 点击登录
     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("商品名称:乐仑炫彩-粤11选5", trade_name)
     sos.check_order_details()  # 点击查看订单详情
     num2 = od.Ele_five_betting_nu()  # 获取订单详情页的号码
     self.assertEqual(num1, num2)
Exemplo n.º 16
0
 def test_Lottery_multiphase_machine_choose5_case(self):
     """选号页面,右上方隐藏的多期机选,5期提交订单"""
     ###点击进入大乐透进入大乐透选号页面###
     hp = HomePage_lelun(self.driver)
     hp.open()
     ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作
     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_machine_choose(5)  #点击5期
     text1 = ulcn.many_machine_choose_text()
     self.assertIn("1注 5期 1倍", text1, '多期机选有误')
     ulcn.Many_pause_confirm()  #点击多期机选页的【提交订单】
     #####用户登录######
     l = Login_lelun(self.driver)
     l.login_lelun()
     ulcn.There_clock()  # 点击。。。
     ulcn.Many_pause()  # 点击多期机选
     ulcn.many_machine_choose(5)  # 点击5期
     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, "提交订单失败")
Exemplo n.º 17
0
 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()  # 点击提交订单
Exemplo n.º 18
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, "提交订单失败")
 def test_UnionLotto_DanTuo_many_case(self):
     """增加倍数和期数"""
     ha = HomePage_lelun(self.driver)
     hb = UnionLottoChooseNumber_lelun(self.driver)
     hc = ConfirmLottery_lelun(self.driver)
     hl = Login_lelun(self.driver)
     hd = SubmitOrderSuccess_lelun(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.throw_times_input(13)
     hc.chase_ticket_button()  # 点击追xx期
     hc.chase_ticket_button_twenty()  # 点击追20期
     mur = hc.lottery_number_text()  # 读取注数
     self.assertEqual('2', mur)  ##断言
     nu = hc.throw_time_text()  ###倍数
     self.assertEqual('13', nu)
     chase_time_text = hc.chase_time_text()  # 获取追号期数
     self.assertIn("20", chase_time_text)  # 检查追号期数为20期
     hc.submit_order_to_station_owner_button()
Exemplo n.º 20
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)
Exemplo n.º 21
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)
Exemplo n.º 22
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()  # 点击确认选号按钮
Exemplo n.º 23
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)
Exemplo n.º 24
0
 def test_Lottery_Hand_r5b12_case(self):
     """大乐透手选5个红球12个蓝球购买流程测试"""
     ###点击进入大乐透进入大乐透选号页面###
     hp = HomePage_lelun(self.driver)
     hp.open()
     ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作
     hp.Moveable_float_close()
     hp.Lottery_link()  # 点击大乐透链接
     blcn = BigLotteryChooseNum_lelun(self.driver)
     blcn.l_red_label5()  # 任意选择5个红球
     blcn.l_bule_label12()  # 任意选择12个蓝球
     ulcn = UnionLottoChooseNumber_lelun(self.driver)
     ulcn.Confirm_button()  # 点击确认选号按钮
     cl = ConfirmLottery_lelun(self.driver)
     cl.submit_order_to_station_owner_button()  # 点击“提交订单给站主”按钮
     #####用户登录######
     l = Login_lelun(self.driver)
     #l.new_user_login_tab()  # 切换到新用户登录
     l.login_lelun()
     cl.submit_order_to_station_owner_button()  # 点击“提交订单给站主”按钮
     cl.confirm_and_pay_button()  # 点击“确认并支付”按钮
     '''断言验证提交订单成功'''
     sos = SubmitOrderSuccess_lelun(self.driver)
     hp.Moveable_float_close()
     text = sos.submit_order_success()
     self.assertEqual("订单提交成功", text, "提交订单失败")
Exemplo n.º 25
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, '页面未跳转至订单详情页')
Exemplo n.º 26
0
 def test_mix_lottery_case(self):
     '''多注(复式、单式组合)选号,提交订单'''
     hp = HomePage_lelun(self.driver)
     hp.open()
     ulcn = UnionLottoChooseNumber_lelun(self.driver)
     cl = ConfirmLottery_lelun(self.driver)
     efcl = EleChooseFiveConfirmLottery_lelun(self.driver)
     sos = SubmitOrderSuccess_lelun(self.driver)
     l = Login_lelun(self.driver)
     ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作
     hp.Moveable_float_close()
     hp.gd_11_5_link()  # 点击广东11选5链接
     efcn = ElevenFiveChooseNumber_lelun(self.driver)
     efcn.countdown_text()  # 检查“距离第xxx期截止:”文案是否存在
     efcn.spread_mode_button()  ##选择展开玩法
     efcn.mode_choose(23, 1)  # 广东11选5任选二
     efcn.hand_options(2)  # 任选两个号
     efcn.confirm_number_button()  # 点击确认选号
     efcl.continue_choose_num()  # 点击继续选号
     efcn.hand_options(3)  # 任选两个号码
     efcn.confirm_number_button()  # 点击确认选号
     efcl.submit_order_button()  # 点击提交订单给站主
     l.login_lelun()  # 点击登录
     efcl.submit_order_button()  # 点击提交订单给站主
     text1=efcl.lottery_chase_throw_text()#获取期数和投注倍数
     self.assertIn("4注1期1倍",text1)
     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("商品名称:乐仑炫彩-粤11选5", trade_name)
Exemplo n.º 27
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)
Exemplo n.º 28
0
 def test_recommendation_many_lottery_many_times_case(self):
     '''选号页面,点开历史开奖,使用推荐号码投注(多注多倍),提交订单'''
     hp = HomePage_lelun(self.driver)
     tD = There_D_choosenumber_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.gd_11_5_link()  # 点击广东11选5链接
     efcn.spread_mode_button()#展开玩法
     efcn.mode_choose(23, 1)  # 广东11选5任选二
     ulcn.There_clock()  # 点击选号页的。。。
     efcn.history_trend()#点击历史走势
     efcn.recommendation_choose_num(4)#选择两个号码
     efcn.use_recommendation()#点击使用推荐号码
     efcn.confirm_number_button()  # 点击确认选号
     num1 = efcl.Ele_five_select_number()#获取投注确认页的选号
     efcl.submit_order_button()  # 点击提交订单给站主
     l.login_lelun()  # 点击登录
     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("商品名称:乐仑炫彩-粤11选5", trade_name)
     sos.check_order_details()#点击查看订单详情
     num2 = od.Ele_five_betting_nu()#获取订单详情页的号码
     self.assertEqual(num1,num2)
    def test_UnionLotto_Hand_choose_case(self):
        """双色球手选6个红球1个蓝球购买流程测试"""
        ###点击进入双色球选号页面###
        hp = HomePage_lelun(self.driver)
        hp.open()
        ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作
        hp.Moveable_float_close()
        hp.UnionLotto_link()  #点击双色球链接

        #选号
        ulcn = UnionLottoChooseNumber_lelun(self.driver)
        ulcn.u_red_label6()  #任意选择6个红球
        ulcn.u_bule_label1()  #任意选择1个蓝球
        ulcn.Confirm_button()  #点击确认选号按钮
        cl = ConfirmLottery_lelun(self.driver)
        cl.submit_order_to_station_owner_button()  # 点击“提交订单给站主”按钮
        #####用户登录######
        l = Login_lelun(self.driver)
        l.login_lelun()
        cl.submit_order_to_station_owner_button()  # 点击“提交订单给站主”按钮
        cl.confirm_and_pay_button()  # 点击“确认并支付”按钮
        '''断言验证提交订单成功'''
        sos = SubmitOrderSuccess_lelun(self.driver)
        hp.Moveable_float_close()  # 关闭悬浮窗口
        text = sos.submit_order_success()
        self.assertEqual("订单提交成功", text, "提交订单失败")
 def test_machine_choose_one_button_case(self):
     '''投注确认页“机选一注”按钮测试流程'''
     hp = HomePage_lelun(self.driver)
     hp.open()
     ulcn = UnionLottoChooseNumber_lelun(self.driver)
     ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作
     hp.Moveable_float_close()
     hp.sd_11_5_link()  # 点击山东11选5链接
     efcn = ElevenFiveChooseNumber_lelun(self.driver)
     efcn.countdown_text()  # 检查“距离第xxx期截止:”文案是否存在
     ulcn.machine_choose_button()  # 点击机选
     ulcn.machine_choose_one_button()  # 机选一注
     efcn.confirm_number_button()  # 确认选号
     ecfcl = EleChooseFiveConfirmLottery_lelun(self.driver)
     ecfcl.countdown_text()  # 检查倒计时文案
     ecfcl.machine_choose_one()  # 点击“机选一注”按钮
     check = ecfcl.lottery_chase_throw_text()  # 获取投注注数、追号期数、投注倍数
     self.assertIn("2注1期1倍", check)  ##验证投注注数、投注期号、投注倍数
     ecfcl.submit_order_button()  # 提交订单给站主
     l = Login_lelun(self.driver)
     l.login_lelun()  # 登录
     ecfcl.submit_order_button()  # 提交订单给站主
     cl = ConfirmLottery_lelun(self.driver)
     cl.confirm_and_pay_button()  # 点击确认并支付
     sos = SubmitOrderSuccess_lelun(self.driver)
     text = sos.submit_order_success()  # 获取页面“订单提交成功”文本
     self.assertEqual("订单提交成功", text)
     hp.Moveable_float_close()  # 如果出现浮层弹框,关闭
     trade_name = sos.trade_name_text()  # 获取页面商品名称文本
     self.assertIn("商品名称:乐仑炫彩-山东11选5", trade_name)
     sos.check_order_details()  # 点击查看详情
     od = OrderDetails_lelun(self.driver)
     od.order_details_check()  # 检查订单详情页页面元素