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, "提交订单失败")
Exemplo n.º 2
0
 def test_UnionLotto_Machine_choose_one_case(self):
     '''机选一注测试'''
     ###点击进入双色球选号页面###
     hp = HomePage_lelun(self.driver)
     hp.open()
     ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作
     hp.Moveable_float_close()
     hp.UnionLotto_link()  #点击双色球链接
     ####选择机选一注并确认选号####
     ulcn = UnionLottoChooseNumber_lelun(self.driver)
     ulcn.machine_choose_button()  #点击机选
     ulcn.machine_choose_one_button()  #机选一注
     ulcn.Confirm_button()  #确认选号
     ######进入提交订单页面######
     cl = ConfirmLottery_lelun(self.driver)
     lottery_number_text = cl.lottery_number_text()
     self.assertIn("1", lottery_number_text)  #检查投注注数为1注
     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)
     trade_text = sos.trade_name_text()  #获取商品名称
     self.assertIn("商品名称:乐仑炫彩-双色球", trade_text)  #检查商品名称正确
Exemplo n.º 3
0
 def test_onestar_machine_choose_one_cancel_delete_all_case(self):
     '''机选1注,投注确认页,点击【删除所有投注】图标【取消】删除,提交订单'''
     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)
     ulcn = UnionLottoChooseNumber_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()#选择一星
     ulcn.machine_choose_button()#点击机选
     ulcn.machine_choose_one_button()#机选一注
     efcn.confirm_number_button()  # 点击确认选号
     cl.delete_all_num_button()#删除所有选号
     cl.cancel_delete_button()#取消删除
     bb = efcl.lottery_chase_throw_text()  # 获取注数倍数
     self.assertIn("1注1期1倍", bb)
     efcl.submit_order_button()  # 点击提交订单给站主
     cl.confirm_and_pay_button()  # 点击确认并支付
     hp.Moveable_float_close()  # 如果出现浮层弹框,关闭
     text = sos.submit_order_success()  # 获取页面“订单提交成功”文本
     self.assertEqual("订单提交成功", text)
     hp.Moveable_float_close()  # 如果出现浮层弹框,关闭
     trade_name = sos.trade_name_text()  # 获取页面商品名称文本
     self.assertIn("商品名称:乐秀赢球-重庆时时彩", trade_name)
 def test_UnionLotto_Continue_buy(self):
     """验证继续投注该彩种"""
     ha = HomePage_lelun(self.driver)
     hb = UnionLottoChooseNumber_lelun(self.driver)
     hc = ConfirmLottery_lelun(self.driver)
     hc1 = PaintBallChooseNumber_lelun(self.driver)
     hl = Login_lelun(self.driver)
     hd = SubmitOrderSuccess_lelun(self.driver)
     hf = SubmitOrderSuccess_lelun(self.driver)
     ha.open()
     ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作
     ha.Moveable_float_close()
     ha.UnionLotto_link()  # 点击双色球链接
     hb.u_red_label6()  # 任意选择6个红球
     hb.u_bule_label1()  # 任意选择1个蓝球
     hb.Confirm_button()  # 点击确认选号按钮
     mur = hc.lottery_number_text()  # 读取注数
     self.assertEqual('1', mur)  ##断言
     nu = hc.throw_time_text()  ###倍数
     self.assertEqual('1', nu)
     hc.submit_order_to_station_owner_button()
     #hl.new_user_login_tab()  # 点击新登录
     hl.login_lelun()  # 输入账号,密码
     hc.submit_order_to_station_owner_button()  # 点击提交给站主
     hc.confirm_and_pay_button()  # 点击确认支付
     hd.Continue_buy()  ##点击继续购买该彩种
     mur1 = hc1.Play_fb()
     self.assertEqual('玩\n法', mur1)
     hb.machine_choose_button()  # 点击机选
     hb.machine_choose_one_button()  # 机选一注
     hb.Confirm_button()  # 确认选号
     hc.submit_order_to_station_owner_button()  # 点击提交给站主
     hc.confirm_and_pay_button()  # 点击确认支付
     text1 = hf.submit_order_success()  # 获取提交订单成功文本
     self.assertEqual('订单提交成功', text1)
Exemplo n.º 5
0
 def test_bigsmall_machine_choose_ten_case(self):
     '''大小单双玩法,机选10注,确认选号提交订单'''
     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)
     ulcn = UnionLottoChooseNumber_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()  # 选择大小单双玩法
     ulcn.machine_choose_button()  # 点击机选
     ulcn.machine_choose_ten_button()  # 机选10注
     bb = efcl.lottery_chase_throw_text()  # 获取注数倍数
     self.assertIn("10注1期1倍", bb)
     efcl.submit_order_button()  # 点击提交订单给站主
     cl.confirm_and_pay_button()  # 点击确认并支付
     hp.Moveable_float_close()  # 如果出现浮层弹框,关闭
     text = sos.submit_order_success()  # 获取页面“订单提交成功”文本
     self.assertEqual("订单提交成功", text)
     hp.Moveable_float_close()  # 如果出现浮层弹框,关闭
     trade_name = sos.trade_name_text()  # 获取页面商品名称文本
     self.assertIn("商品名称:乐秀赢球-重庆时时彩", trade_name)
Exemplo n.º 6
0
 def test_onestar_machine_choose_one_case(self):
     '''机选1注,确认选号提交订单,点击【查看订单详情】'''
     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)
     ulcn = UnionLottoChooseNumber_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()#选择一星
     ulcn.machine_choose_button()#点击机选
     ulcn.machine_choose_one_button()#机选一注
     aa = efcn.total_buy_text()
     self.assertIn("1注 ", 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)
     hp.Moveable_float_close()  # 如果出现浮层弹框,关闭
     trade_name = sos.trade_name_text()  # 获取页面商品名称文本
     self.assertIn("商品名称:乐秀赢球-重庆时时彩", trade_name)
     sos.check_order_details()#点击查看订单详情
Exemplo n.º 7
0
 def test_onestar_machine_choose_five_delete_one_case(self):
     '''机选5注,投注确认页,点击【单个删除投注】图标,投注注数减少一注,提交订单'''
     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)
     ulcn = UnionLottoChooseNumber_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()  # 选择一星
     ulcn.machine_choose_button()  # 点击机选
     ulcn.machine_choose_five_button()  # 机选5注
     num=cl.event_count()#获取总共有多少注
     cl.del_n(5)  # 选择删除第5场投注
     num1 = cl.event_count()#获取删除后的场数
     self.assertEqual(num-1,num1)
     bb = efcl.lottery_chase_throw_text()  # 获取注数倍数
     self.assertIn("4注1期1倍", bb)
     efcl.submit_order_button()  # 点击提交订单给站主
     cl.confirm_and_pay_button()  # 点击确认并支付
     hp.Moveable_float_close()  # 如果出现浮层弹框,关闭
     text = sos.submit_order_success()  # 获取页面“订单提交成功”文本
     self.assertEqual("订单提交成功", text)
     hp.Moveable_float_close()  # 如果出现浮层弹框,关闭
     trade_name = sos.trade_name_text()  # 获取页面商品名称文本
     self.assertIn("商品名称:乐秀赢球-重庆时时彩", trade_name)
Exemplo n.º 8
0
 def test_coun_nu_case(self):
     '''确认页点击继续选号,支付流程'''
     ha = HomePage_lelun(self.driver)
     hb = Seven_color_choosenumber_lelun(self.driver)
     hb2 = ArrangeFiveChooseNumber_lelun(self.driver)
     hb1 = UnionLottoChooseNumber_lelun(self.driver)
     hc = ConfirmLottery_lelun(self.driver)
     hc1 = ArrangeFiveConfirmLottery_lelun(self.driver)
     hl = Login_lelun(self.driver)
     ha.open()
     ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作
     ha.Moveable_float_close()
     ha.colorful_star_link()  # 点击七星彩
     hb.Seven_nuos(1)  # 在一位随机点击1个数字
     hb.Seven_nuts(1)  # 在二位随机点击1个数字
     hb.Seven_nuths(1)  # 在三位随机点击1个数字
     hb.Seven_nufs(1)  ##在四位随机点击1个数字
     hb.Seven_nufis(1)  # 在五位随机点击1个数字
     hb.Seven_nuss(1)  # 在六位随机点击1个数字
     hb.Seven_nuses(1)  # 在七位随机点击1个数字
     hb2.Confirm_nu()  ####点击确认选号
     hc1.Coun_nu()  ###点击继续选号
     hb1.machine_choose_button()  #####点击机选按钮
     hb1.machine_choose_one_button()  ####点击机选1注
     hb2.Confirm_nu()  # 点击确认选号按钮
     mur = hc1.Test_note_nu()
     self.assertEqual('2', mur)  ####断言注数
     hc.submit_order_to_station_owner_button()  # 点击订单给站主
     #hl.new_user_login_tab()  # 点击新登录
     hl.login_lelun()  # 输入账号,密码
     hc.submit_order_to_station_owner_button()  # 点击提交给站主
     hc.confirm_and_pay_button()  # 点击确认支付
Exemplo n.º 9
0
 def test_Del_all_nu_case(self):
     '''验证点击清除所有选择号码按钮,支付流程'''
     ha = HomePage_lelun(self.driver)
     hb = Seven_color_choosenumber_lelun(self.driver)
     hb2 = ArrangeFiveChooseNumber_lelun(self.driver)
     hb1 = UnionLottoChooseNumber_lelun(self.driver)
     hc = ConfirmLottery_lelun(self.driver)
     hc1 = ArrangeFiveConfirmLottery_lelun(self.driver)
     hl = Login_lelun(self.driver)
     ha.open()
     ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作
     ha.Moveable_float_close()
     ha.colorful_star_link()  ###点击七星彩
     hb1.machine_choose_button()  #####点击机选按钮
     hb1.machine_choose_ten_button()  ####点击机选10注
     hc.delete_all_num_button()
     hc.cancel_delete_button()
     hc.delete_all_num_button()
     hc.confirm_delete_button()
     hb1.machine_choose_button()  #####点击机选按钮
     hb1.machine_choose_one_button()  ####点击机选1注
     hb2.Confirm_nu()
     mur = hc1.Test_note_nu()
     self.assertEqual('1', mur)  ####断言注数
     hc.submit_order_to_station_owner_button()  # 点击提交给站主
     #hl.new_user_login_tab()  # 点击新登录
     hl.login_lelun()  # 输入账号,密码
     hc.submit_order_to_station_owner_button()  # 点击提交给站主
     hc.confirm_and_pay_button()  # 点击确认支付
Exemplo n.º 10
0
 def test_Direct_alter_nu_case(self):
     """验证确认投注页面,点击选择号码进行修改"""
     ha = HomePage_lelun(self.driver)
     hb = There_D_choosenumber_lelun(self.driver)
     hb1 = ArrangeFiveChooseNumber_lelun(self.driver)
     hb2 = UnionLottoChooseNumber_lelun(self.driver)
     hc = ConfirmLottery_lelun(self.driver)
     hd = ArrangeFiveConfirmLottery_lelun(self.driver)
     hl = Login_lelun(self.driver)
     ha.open()
     ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作
     ha.Moveable_float_close()
     ha.fucai_3D_link()  ###点击3D
     hb.Play_d()  ###点击玩法
     hb.Play_direct_d()  ###点击直选
     hb2.machine_choose_button()  ###点击机选
     hb2.machine_choose_five_button()  ##点击机选5注
     hd.Note_none(2)
     mur = hd.Test_note_nu()
     self.assertEqual('13', mur)  ####断言注数
     hc.submit_order_to_station_owner_button()  # 点击提交给站主
     #hl.new_user_login_tab()  # 点击新登录
     hl.login_lelun()  # 输入账号,密码
     hc.submit_order_to_station_owner_button()  # 点击提交给站主
     hc.confirm_and_pay_button()  # 点击确认支付
 def test_group_there_pause_one_case(self):
     """验证选号页面,点击机选一注功能"""
     ha = HomePage_lelun(self.driver)
     hb = Arrang_there_choosenumber_lelun(self.driver)
     hb1 = ArrangeFiveChooseNumber_lelun(self.driver)
     hb2 = UnionLottoChooseNumber_lelun(self.driver)
     hc = ConfirmLottery_lelun(self.driver)
     hd = ArrangeFiveConfirmLottery_lelun(self.driver)
     hl = Login_lelun(self.driver)
     ha.open()
     ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作
     ha.Moveable_float_close()
     ha.rank_three_link()  ####点击排列3
     hb.Play()  ###点击玩法
     hb.Play_Group_there()  ####点击组三
     hb2.machine_choose_button()  ###点击机选
     hb2.machine_choose_one_button()  ##点击机选一注
     hb1.Confirm_nu()  # 点击确认选号
     mur = hd.Test_note_nu()
     self.assertEqual('2', mur)  ####断言注数
     hc.submit_order_to_station_owner_button()  ##点击提交给站主
     #hl.new_user_login_tab()  # 点击新登录
     hl.login_lelun()  # 输入账号,密码
     hc.submit_order_to_station_owner_button()  # 点击提交给站主
     hc.confirm_and_pay_button()  # 点击确认支付
 def test_machine_choose_five_button_case(self):
     '''投注确认页“机选五注”按钮测试流程'''
     hp = HomePage_lelun(self.driver)
     ulcn = UnionLottoChooseNumber_lelun(self.driver)
     hp.open()
     ######判断是否出现浮层弹框,如果出现浮层点击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_five()  # 点击“机选5注”按钮
     check = ecfcl.lottery_chase_throw_text()  # 获取投注注数、追号期数、投注倍数
     self.assertIn("6注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_checks()  # 检查订单详情页页面元素
 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, "提交订单失败")
Exemplo n.º 14
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()  # 点击提交订单
 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.º 16
0
 def test_machine_choose_one_throw_add_case(self):
     '''机选一注输入投3倍,点击投注倍数的+按钮流程测试'''
     hp = HomePage_lelun(self.driver)
     hp.open()
     ulcn = UnionLottoChooseNumber_lelun(self.driver)
     ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作
     hp.Moveable_float_close()
     hp.gd_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()  # 检查倒计时文案
     cl = ConfirmLottery_lelun(self.driver)
     ecfcl.throw_times_input("3")  #输入投3倍
     ecfcl.throw_times_add_button()  #点击投注倍数的+按钮
     check = ecfcl.lottery_chase_throw_text()  #获取投注注数、追号期数、投注倍数文本
     self.assertIn("1注1期4倍", check)
     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)
     hp.Moveable_float_close()  # 如果出现浮层弹框,关闭
     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()  # 检查订单详情页页面元素
Exemplo n.º 17
0
 def test_machine_choose_ten_delete_one_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.gd_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)
     ecfcl.delete_one_button()  #点击删除单个选号
     recheck = ecfcl.lottery_chase_throw_text()
     self.assertIn("9注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)
     hp.Moveable_float_close()  # 如果出现浮层弹框,关闭
     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()  # 检查订单详情页页面元素
Exemplo n.º 18
0
 def test_UnionLotto_Machine_continue_choose_button(self):
     '''机选一注“继续选号”按钮测试'''
     hp = HomePage_lelun(self.driver)
     hp.open()
     ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作
     hp.Moveable_float_close()
     hp.UnionLotto_link()  # 点击双色球链接
     ####选择机选一注并确认选号####
     ulcn = UnionLottoChooseNumber_lelun(self.driver)
     ulcn.machine_choose_button()  # 点击机选
     ulcn.machine_choose_one_button()  # 机选1注
     ulcn.Confirm_button()  # 确认选号
     cl = ConfirmLottery_lelun(self.driver)
     cl.continue_choose_num_button()  #点击“继续选号”按钮
     ulcn.machine_choose_button()  # 点击机选
     ulcn.machine_choose_one_button()  # 机选1注
     ulcn.Confirm_button()  # 确认选号
     lottery_number_text = cl.lottery_number_text()
     self.assertIn("2", lottery_number_text)
     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, "提交订单失败")
     trade_text = sos.trade_name_text()  # 获取商品名称
     self.assertIn("商品名称:乐仑炫彩-双色球", trade_text)  # 检查商品名称正确
     sos.check_order_details()  #查看订单详情
     od = OrderDetails_lelun(self.driver)
     od.order_details_check()  #检查订单详情页
Exemplo n.º 19
0
 def test_Direct_Del_all_nu_ok_case(self):
     """验证确认投注页面,点击删除选号图标功能"""
     ha = HomePage_lelun(self.driver)
     hb = There_D_choosenumber_lelun(self.driver)
     hb1 = ArrangeFiveChooseNumber_lelun(self.driver)
     hb2 = UnionLottoChooseNumber_lelun(self.driver)
     hc = ConfirmLottery_lelun(self.driver)
     hd = ArrangeFiveConfirmLottery_lelun(self.driver)
     hl = Login_lelun(self.driver)
     ha.open()
     ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作
     ha.Moveable_float_close()
     ha.fucai_3D_link()  ###点击3D
     hb.Play_d()  ###点击玩法
     hb.Play_direct_d()  ###点击直选
     hb2.machine_choose_button()  ###点击机选
     hb2.machine_choose_ten_button()  ##点击机选10注
     hc.delete_all_num_button()  ###点击清除所有选号
     hc.confirm_delete_button()  # 点击确定
     hb2.machine_choose_button()  ###点击机选
     hb2.machine_choose_one_button()  ##点击机选一注
     hb1.Confirm_nu()  # 点击确认选号
     mur = hd.Test_note_nu()
     self.assertEqual('1', mur)  ####断言注数
     hc.submit_order_to_station_owner_button()  ##点击提交给站主
     #hl.new_user_login_tab()  # 点击新登录
     hl.login_lelun()  # 输入账号,密码
     hc.submit_order_to_station_owner_button()  # 点击提交给站主
     hc.confirm_and_pay_button()  # 点击确认支付
 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.º 21
0
 def test_UnionLotto_Machine_choose_five_delete_all_case(self):
     '''机选五注全部删除并确定流程测试'''
     ###点击进入双色球选号页面###
     hp = HomePage_lelun(self.driver)
     hp.open()
     ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作
     hp.Moveable_float_close()
     hp.UnionLotto_link()  # 点击双色球链接
     ####选择机选一注并确认选号####
     ulcn = UnionLottoChooseNumber_lelun(self.driver)
     ulcn.machine_choose_button()  # 点击机选
     ulcn.machine_choose_five_button()  # 机选5注
     ######进入提交订单页面######
     cl = ConfirmLottery_lelun(self.driver)
     chase = cl.chase_time_text()  # 获取追号期数
     times = cl.throw_time_text()  # 获取输入的投注倍数
     lottery_num = cl.lottery_number_text()  #获取投注注数
     self.assertEqual("5", lottery_num)  #检查投注的注数为5注
     self.assertEqual("1", chase)  # 检查追号期数1期
     self.assertEqual("1", times)  # 检查投注倍数1倍
     cl.delete_all_num_button()  #点击删除所有选号
     cl.confirm_delete_button()  #点击确认删除
     ulcn.machine_choose_button()  #点击机选按钮
     ulcn.machine_choose_one_button()  #点击机选1注
     ulcn.Confirm_button()  #确认选号
     chase = cl.chase_time_text()  # 获取追号期数
     times = cl.throw_time_text()  # 获取输入的投注倍数
     lottery_num = cl.lottery_number_text()  # 获取投注注数
     self.assertEqual("1", lottery_num)  # 检查投注的注数为1注
     self.assertEqual("1", chase)  # 检查追号期数1期
     self.assertEqual("1", times)  # 检查投注倍数1倍
     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)
     ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作
     hp.Moveable_float_close()
     text = sos.submit_order_success()
     self.assertEqual("订单提交成功", text, "提交订单失败")
     trade_text = sos.trade_name_text()  # 获取商品名称
     self.assertIn("商品名称:乐仑炫彩-双色球", trade_text)  # 检查商品名称正确
     sos.check_order_details()  # 查看订单详情
     od = OrderDetails_lelun(self.driver)
     od.order_details_check()  # 检查订单详情页
Exemplo n.º 22
0
 def test_UnionLotto_machine_one_after(self):
     """机选一注之后,新增选号,变为复式"""
     ha = HomePage_lelun(self.driver)
     hb = UnionLottoChooseNumber_lelun(self.driver)
     hc = ConfirmLottery_lelun(self.driver)
     ha.open()
     ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作
     ha.Moveable_float_close()
     ha.UnionLotto_link()  # 点击双色球链接
     hb.machine_choose_button()  # 点击机选
     hb.machine_choose_one_button()  # 机选一注
     hb.Confirm_button()  # 确认选号
     hc.re_selection_num()
     hb.Select_bule()  ###添加一个蓝球
     hb.Confirm_button()  # 点击确认选号按钮
     mur = hc.lottery_number_text()  # 读取注数
     self.assertEqual('2', mur)  ##断言
     nu = hc.throw_time_text()  ###倍数
     self.assertEqual('1', nu)
     hc.submit_order_to_station_owner_button()
Exemplo n.º 23
0
 def test_Direct_Del_all_nu_case(self):
     """验证确认投注页面,点击删除选号图标功能"""
     ha = HomePage_lelun(self.driver)
     hb = There_D_choosenumber_lelun(self.driver)
     hb1 = ArrangeFiveChooseNumber_lelun(self.driver)
     hb2 = UnionLottoChooseNumber_lelun(self.driver)
     hc = ConfirmLottery_lelun(self.driver)
     hd = ArrangeFiveConfirmLottery_lelun(self.driver)
     hl = Login_lelun(self.driver)
     ha.open()
     ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作
     ha.Moveable_float_close()
     ha.fucai_3D_link()  ###点击3D
     hb.Play_d()  ###点击玩法
     hb.Play_direct_d()  ###点击直选
     hb2.machine_choose_button()  ###点击机选
     hb2.machine_choose_ten_button()  ##点击机选10注
     hc.delete_all_num_button()  ###点击清除所有选号
     mur = hb.Clear()
     self.assertEqual('清空', mur)
Exemplo n.º 24
0
 def test_UnionLotto_assemblage_after(self):
     """多注(复式、单式组合)选号"""
     ha = HomePage_lelun(self.driver)
     hb = UnionLottoChooseNumber_lelun(self.driver)
     hc = ConfirmLottery_lelun(self.driver)
     ha.open()
     ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作
     ha.Moveable_float_close()
     ha.UnionLotto_link()  # 点击双色球链接
     hb.machine_choose_button()  # 点击机选
     hb.machine_choose_one_button()  # 机选一注
     hb.Confirm_button()  # 确认选号
     hc.continue_choose_num_button()  ##继续选号
     hb.u_red_label18()  # 任意选择18个红球
     hb.u_bule_label1()  # 任意选择1个蓝球
     hb.Confirm_button()  # 点击确认选号按钮
     mur = hc.lottery_number_text()  # 读取注数
     self.assertEqual('18565', mur)  ##断言
     nu = hc.throw_time_text()  ###倍数
     self.assertEqual('1', nu)
     hc.submit_order_to_station_owner_button()
 def test_Lottery_Machine_cancel_pay(self):
     '''测试提交订单页确认支付弹窗的x按钮'''
     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_one_button()  # 点击机选一注
     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.cancel_pay_button()  #确认支付页点击x按钮
     '''断言验证取消支付成功'''
     text = cl.confirm_num_page_text()
     self.assertEqual("提交订单给站主", text)
     print("我已放弃删除,回到了" + text + "页")
Exemplo n.º 26
0
 def test_UnionLotto_Machine_input_three_times_add_case(self):
     '''输入投3倍,再点击+流程测试'''
     hp = HomePage_lelun(self.driver)
     hp.open()
     ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作
     hp.Moveable_float_close()
     hp.UnionLotto_link()  # 点击双色球链接
     ####选择机选一注并确认选号####
     ulcn = UnionLottoChooseNumber_lelun(self.driver)
     ulcn.machine_choose_button()  # 点击机选
     ulcn.machine_choose_one_button()  # 机选1注
     ulcn.Confirm_button()  # 确认选号
     cl = ConfirmLottery_lelun(self.driver)
     cl.throw_times_input("3")  #输入投注倍数为3倍
     lottery_number_text = cl.lottery_number_text()  # 获取投注注数文本
     self.assertIn("1", lottery_number_text)  # 检查投注注数为1注
     throw_times = cl.throw_time_text()  #获取投注倍数定位
     self.assertIn("3", throw_times)  #检查投注倍数为3倍
     cl.u_throw_times_button_add()  #点击+
     lottery_number_text = cl.lottery_number_text()  # 获取投注注数文本
     self.assertIn("1", lottery_number_text)  # 检查投注注数为1注
     throw_times = cl.throw_time_text()  # 获取投注倍数定位
     self.assertIn("4", throw_times)  # 检查投注倍数为4倍
     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, "提交订单失败")
     trade_text = sos.trade_name_text()  # 获取商品名称
     self.assertIn("商品名称:乐仑炫彩-双色球", trade_text)  # 检查商品名称正确
     sos.check_order_details()  # 查看订单详情
     od = OrderDetails_lelun(self.driver)
     od.order_details_check()  # 检查订单详情页
Exemplo n.º 27
0
 def test_group_six_add_pause_one_case(self):
     """验证选号页面,点击机选按钮功能"""
     ha = HomePage_lelun(self.driver)
     hb = There_D_choosenumber_lelun(self.driver)
     hb1 = ArrangeFiveChooseNumber_lelun(self.driver)
     hb2 = UnionLottoChooseNumber_lelun(self.driver)
     hc = ConfirmLottery_lelun(self.driver)
     hd = ArrangeFiveConfirmLottery_lelun(self.driver)
     hl = Login_lelun(self.driver)
     ha.open()
     ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作
     ha.Moveable_float_close()
     ha.fucai_3D_link()  ###点击3D
     hb.Play_d()  ###点击玩法
     hb.Play_group_six_add_d()  ##点击组六和值
     hb2.machine_choose_button()  ###点击机选
     hb1.Confirm_nu()  # 点击确认选号
     hc.submit_order_to_station_owner_button()  ##点击提交给站主
     #hl.new_user_login_tab()  # 点击新登录
     hl.login_lelun()  # 输入账号,密码
     hc.submit_order_to_station_owner_button()  # 点击提交给站主
     hc.confirm_and_pay_button()  # 点击确认支付
Exemplo n.º 28
0
 def test_group_six_Del_all_nu_ok_case(self):
     """验证确认投注页面,点击删除选号图标功能"""
     hc1 = PaintBallChooseNumber_lelun(self.driver)
     ha = HomePage_lelun(self.driver)
     hb = There_D_choosenumber_lelun(self.driver)
     hb1 = ArrangeFiveChooseNumber_lelun(self.driver)
     hb2 = UnionLottoChooseNumber_lelun(self.driver)
     hc = ConfirmLottery_lelun(self.driver)
     hd = ArrangeFiveConfirmLottery_lelun(self.driver)
     hl = Login_lelun(self.driver)
     ha.open()
     ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作
     ha.Moveable_float_close()
     ha.fucai_3D_link()  ###点击3D
     hb.Play_d()  ###点击玩法
     hb.Play_group_six_add_d()  ##点击组六和值
     hb2.machine_choose_button()  ###点击机选
     hb1.Confirm_nu()  # 点击确认选号
     hc.delete_all_num_button()  ###点击清除所有选号
     hc.confirm_delete_button()  # 点击确定
     mur = hc1.Play_fb()
     self.assertEqual('玩\n法', mur)
Exemplo n.º 29
0
 def test_one_lottery_ckick_x_case(self):
     '''在投注确认页面,单注号码,点击左边X按钮,页面能跳转到选号页'''
     ###点击进入大乐透进入大乐透选号页面###
     hp = HomePage_lelun(self.driver)
     hd = ArrangeFiveConfirmLottery_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)
     ulcn.machine_choose_button()  #点击机选按钮
     ulcn.machine_choose_one_button()  #点击机选1注
     ulcn.Confirm_button()  # 确认选号
     mur = cl.lottery_number_text()
     self.assertEqual('1', mur)
     cl.Del_x()  #点击单个删除x
     ulcn.machine_choose_button()  # 点击机选按钮
     ulcn.machine_choose_five_button()  # 点击机选5注
     num1 = cl.lottery_number_text()  # 获取注数
     self.assertIn("5", num1)
     cl.submit_order_to_station_owner_button()  # 点击提交订单给站主
     cl.confirm_and_pay_button()  # 点击确认并支付
     hp.Moveable_float_close()  # 如果出现浮层弹框,关闭
     text = sos.submit_order_success()  # 获取页面“订单提交成功”文本
     self.assertEqual("订单提交成功", text)
     hp.Moveable_float_close()  # 如果出现浮层弹框,关闭
     trade_name = sos.trade_name_text()  # 获取页面商品名称文本
     self.assertIn("商品名称:乐仑炫彩-大乐透", trade_name)
Exemplo n.º 30
0
 def test_UnionLotton_Machine_cancel_pay(self):
     '''机选一注取消支付测试'''
     hp = HomePage_lelun(self.driver)
     hp.open()
     ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作
     hp.Moveable_float_close()
     hp.UnionLotto_link()  # 点击双色球链接
     ####选择机选一注并确认选号####
     ulcn = UnionLottoChooseNumber_lelun(self.driver)
     ulcn.machine_choose_button()  # 点击机选
     ulcn.machine_choose_one_button()  # 机选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.cancel_pay_button()  #点击取消支付x按钮
     '''断言验证取消支付成功'''
     text = cl.confirm_num_page_text()
     self.assertEqual("提交订单给站主", text)
     print("我已放弃删除,回到了" + text + "页")