Exemple #1
0
 def test_recommendation_many_lottery_many_times_case(self):
     '''选号页面,点开历史开奖,使用推荐号码投注(多注多倍),提交订单'''
     hp = HomePage_leyou(self.driver)
     tD = There_D_choosenumber_leyou(self.driver)
     ulcn = UnionLottoChooseNumber_leyou(self.driver)
     efcn = ElevenFiveChooseNumber_leyou(self.driver)
     efcl = EleChooseFiveConfirmLottery_leyou(self.driver)
     od = OrderDetails_leyou(self.driver)
     l = Login_leyou(self.driver)
     sos = SubmitOrderSuccess_leyou(self.driver)
     cl = ConfirmLottery_leyou(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_leyou()  # 点击登录
     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_machine_choose_ten_case(self):
     '''机选10注流程测试'''
     hp = HomePage_leyou(self.driver)
     hp.open()
     ulcn = UnionLottoChooseNumber_leyou(self.driver)
     ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作
     hp.Moveable_float_close()
     hp.gd_11_5_link()  # 点击广东11选5链接
     efcn = ElevenFiveChooseNumber_leyou(self.driver)
     efcn.countdown_text()  # 检查“距离第xxx期截止:”文案是否存在
     ulcn.machine_choose_button()  # 点击机选
     ulcn.machine_choose_ten_button()  # 机选10注
     ecfcl = EleChooseFiveConfirmLottery_leyou(self.driver)
     ecfcl.countdown_text()  # 检查倒计时文案
     ecfcl.submit_order_button()  # 提交订单给站主
     l = Login_leyou(self.driver)
     l.login_leyou()  # 登录
     ecfcl.submit_order_button()  # 提交订单给站主
     cl = ConfirmLottery_leyou(self.driver)
     cl.confirm_and_pay_button()  # 点击确认并支付
     sos = SubmitOrderSuccess_leyou(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_leyou(self.driver)
     od.order_details_checks()  # 检查订单详情页页面元素
 def test_use_recommand_num_case(self):
     '''使用推荐号码测试'''
     hp = HomePage_leyou(self.driver)
     hp.open()
     ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作
     hp.Moveable_float_close()
     hp.gd_11_5_link()  #点击广东11选5链接
     efcn = ElevenFiveChooseNumber_leyou(self.driver)
     efcn.countdown_text()  # 检查“距离第xxx期截止:”文案是否存在
     efcn.current_period()  #点击“正在开奖中”
     efcn.spread_historical_trend()  #点击进入历史趋势页
     ht = HistoricalTrend_leyou(self.driver)
     ht.use_recommend_num_button()  #点击使用推荐号码
     efcn.confirm_number_button()  #确认选号
     ecfcl = EleChooseFiveConfirmLottery_leyou(self.driver)
     ecfcl.countdown_text()  #检查倒计时文案
     ecfcl.submit_order_button()  #提交订单给站主
     l = Login_leyou(self.driver)
     l.login_leyou()  #登录
     ecfcl.submit_order_button()  # 提交订单给站主
     cl = ConfirmLottery_leyou(self.driver)
     cl.confirm_and_pay_button()  #点击确认并支付
     sos = SubmitOrderSuccess_leyou(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_leyou(self.driver)
     od.order_details_check()  #检查订单详情页页面元素
 def test_machine_choose_one_input_chase3_add_case(self):
     '''机选一注输入追3期,点击投注倍数的+按钮流程测试'''
     hp = HomePage_leyou(self.driver)
     hp.open()
     ulcn = UnionLottoChooseNumber_leyou(self.driver)
     ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作
     hp.Moveable_float_close()
     hp.gd_11_5_link()  # 点击广东11选5链接
     efcn = ElevenFiveChooseNumber_leyou(self.driver)
     efcn.countdown_text()  # 检查“距离第xxx期截止:”文案是否存在
     ulcn.machine_choose_button()  #点击机选
     ulcn.machine_choose_one_button()  #机选一注
     efcn.confirm_number_button()  #确认选号
     ecfcl = EleChooseFiveConfirmLottery_leyou(self.driver)
     ecfcl.countdown_text()  # 检查倒计时文案
     cl = ConfirmLottery_leyou(self.driver)
     ecfcl.chase_ticket_input("3")  #输入追3期
     ecfcl.chase_add_button()  #点击投注倍数的+按钮
     check = ecfcl.lottery_chase_throw_text()  #获取投注注数、追号期数、投注倍数文本
     self.assertIn("1注4期1倍", check)
     ecfcl.submit_order_button()  # 提交订单给站主
     l = Login_leyou(self.driver)
     l.login_leyou()  # 登录
     ecfcl.submit_order_button()  # 提交订单给站主
     cl.confirm_and_pay_button()  # 点击确认并支付
     sos = SubmitOrderSuccess_leyou(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_leyou(self.driver)
     od.chase_order_details_check()  # 检查订单详情页页面元素
Exemple #5
0
 def test_Investment_risk_case(self):
     '''投注确认页面,点击购彩风险,能够打开和关闭'''
     hp = HomePage_leyou(self.driver)
     ulcn = UnionLottoChooseNumber_leyou(self.driver)
     efcn = ElevenFiveChooseNumber_leyou(self.driver)
     efcl = EleChooseFiveConfirmLottery_leyou(self.driver)
     od = OrderDetails_leyou(self.driver)
     l = Login_leyou(self.driver)
     sos = SubmitOrderSuccess_leyou(self.driver)
     cl = ConfirmLottery_leyou(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_leyou()  # 点击登录
     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)
Exemple #6
0
 def test_mix_lottery_case(self):
     '''多注(复式、单式组合)选号,提交订单'''
     hp = HomePage_leyou(self.driver)
     hp.open()
     ulcn = UnionLottoChooseNumber_leyou(self.driver)
     cl = ConfirmLottery_leyou(self.driver)
     efcl = EleChooseFiveConfirmLottery_leyou(self.driver)
     sos = SubmitOrderSuccess_leyou(self.driver)
     l = Login_leyou(self.driver)
     ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作
     hp.Moveable_float_close()
     hp.gd_11_5_link()  # 点击广东11选5链接
     efcn = ElevenFiveChooseNumber_leyou(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_leyou()  # 点击登录
     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)
Exemple #7
0
 def test_orderdetails_continue_scheme_case(self):
     '''胆拖投注提交订单之后,查看订单详情,点击继续购买该方案,提交订单'''
     hp = HomePage_leyou(self.driver)
     ulcn = UnionLottoChooseNumber_leyou(self.driver)
     efcn = ElevenFiveChooseNumber_leyou(self.driver)
     efcl = EleChooseFiveConfirmLottery_leyou(self.driver)
     od = OrderDetails_leyou(self.driver)
     l = Login_leyou(self.driver)
     sos = SubmitOrderSuccess_leyou(self.driver)
     cl = ConfirmLottery_leyou(self.driver)
     hp.open()
     hp.Moveable_float_close()
     hp.My_lottery_ticket()  # 点击我的彩票
     l.login_leyou()  # 登录
     hp.homepage_link()  # 点击首页
     hp.Moveable_float_close()
     hp.gd_11_5_link()  # 点击广东11选5链接
     efcn.spread_mode_button()  # 展开玩法
     efcn.mode_choose(23, 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()  ##点击确认并支付
Exemple #8
0
 def test_many_lottery_many_times_case(self):
     '''复式多注,进入智能追号页面,默认追期,提交订单'''
     hp = HomePage_leyou(self.driver)
     ulcn = UnionLottoChooseNumber_leyou(self.driver)
     efcn = ElevenFiveChooseNumber_leyou(self.driver)
     efcl = EleChooseFiveConfirmLottery_leyou(self.driver)
     ssc_cl = CQSSCConfirmLottery_leyou(self.driver)
     od = OrderDetails_leyou(self.driver)
     l = Login_leyou(self.driver)
     sos = SubmitOrderSuccess_leyou(self.driver)
     cl = ConfirmLottery_leyou(self.driver)
     hp.open()
     hp.Moveable_float_close()
     hp.My_lottery_ticket()  # 点击我的彩票
     l.login_leyou()  # 登录
     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()  # 点击提交订单
Exemple #9
0
 def test_dantuo_optiops2_intelligent_chase_case(self):###mj20171211
     '''胆拖投注,进入智能追号页面,默认追期,提交订单'''
     hp = HomePage_leyou(self.driver)
     hp.open()
     ulcn = UnionLottoChooseNumber_leyou(self.driver)
     ssc_cl = CQSSCConfirmLottery_leyou(self.driver)
     uncl = ConfirmLottery_leyou(self.driver)
     efcl = EleChooseFiveConfirmLottery_leyou(self.driver)
     sos = SubmitOrderSuccess_leyou(self.driver)
     od = OrderDetails_leyou(self.driver)
     ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作
     hp.Moveable_float_close()
     hp.My_lottery_ticket()#点击我的彩票
     l = Login_leyou(self.driver)
     l.login_leyou()  # 点击登录
     hp.Home_page()#点击首页
     hp.Moveable_float_close()
     hp.gd_11_5_link()  # 点击广东11选5链接
     efcn = ElevenFiveChooseNumber_leyou(self.driver)
     efcn.countdown_text()  # 检查“距离第xxx期截止:”文案是否存在
     efcn.spread_mode_button()  ##选择展开玩法
     efcn.mode_choose(23, 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()  # 点击确认支付
Exemple #10
0
 def test_play_instruction_case(self):
     '''在投注选号页面,点击右上角玩法说明,可以打开和关闭'''
     hp = HomePage_leyou(self.driver)
     tD = There_D_choosenumber_leyou(self.driver)
     ulcn = UnionLottoChooseNumber_leyou(self.driver)
     efcn = ElevenFiveChooseNumber_leyou(self.driver)
     hp.open()
     hp.Moveable_float_close()
     hp.gd_11_5_link()  # 点击广东11选5链接
     ulcn.There_clock()  #点击选号页的。。。
     tD.Play_instruction()  #点击玩法说明
     tD.There_D_know()  #点击我知道了
     text1 = efcn.total_buy_text()
     self.assertIn("请至少选择", text1)
Exemple #11
0
 def test_options2_hand_choose11_case(self):
     '''广东11选5,任选二玩法,手选11个号流程测试'''
     hp = HomePage_leyou(self.driver)
     hp.open()
     ulcn = UnionLottoChooseNumber_leyou(self.driver)
     ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作
     hp.Moveable_float_close()
     hp.gd_11_5_link()  # 点击广东11选5链接
     efcn = ElevenFiveChooseNumber_leyou(self.driver)
     efcn.countdown_text()  # 检查“距离第xxx期截止:”文案是否存在
     efcn.spread_mode_button()  ##选择展开玩法
     efcn.mode_choose(23, 1)  # 广东11选5任选二
     efcn.hand_options(11)  # 任选11个号
     efcn.confirm_number_button()  # 点击确认选号
Exemple #12
0
 def test_option16_hand_choose3_case(self):
     '''广东11选5,乐选五玩法,任选5号码测试流程'''
     hp = HomePage_leyou(self.driver)
     hp.open()
     ulcn = UnionLottoChooseNumber_leyou(self.driver)
     ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作
     hp.Moveable_float_close()
     hp.gd_11_5_link()  # 点击广东11选5链接
     efcn = ElevenFiveChooseNumber_leyou(self.driver)
     efcn.countdown_text()  # 检查“距离第xxx期截止:”文案是否存在
     efcn.spread_mode_button()  ##选择展开玩法
     efcn.mode_choose(23, 15)  # 广东11选5乐选五
     efcn.hand_options(5)  #任意选取5个号码
     efcn.confirm_number_button()  # 点击确认选号
Exemple #13
0
 def test_option14_hand_choose1_1_1_case(self):
     '''广东11选5,乐选三玩法,前三位各选1个号码测试流程'''
     hp = HomePage_leyou(self.driver)
     hp.open()
     ulcn = UnionLottoChooseNumber_leyou(self.driver)
     ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作
     hp.Moveable_float_close()
     hp.gd_11_5_link()  # 点击广东11选5链接
     efcn = ElevenFiveChooseNumber_leyou(self.driver)
     efcn.countdown_text()  # 检查“距离第xxx期截止:”文案是否存在
     efcn.spread_mode_button()  ##选择展开玩法
     efcn.mode_choose(23, 13)  # 广东11选5乐选三
     efcn.different_three_num(1, 1, 1)  #前三位各选一个号码
     efcn.confirm_number_button()  #点击确认选号
Exemple #14
0
 def test_options10_hand_choose1_1_case(self):
     '''广东11选5,前二直选玩法,前两位各选1个号码流程测试'''
     hp = HomePage_leyou(self.driver)
     hp.open()
     ulcn = UnionLottoChooseNumber_leyou(self.driver)
     ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作
     hp.Moveable_float_close()
     hp.gd_11_5_link()  # 点击广东11选5链接
     efcn = ElevenFiveChooseNumber_leyou(self.driver)
     efcn.countdown_text()  # 检查“距离第xxx期截止:”文案是否存在
     efcn.spread_mode_button()  ##选择展开玩法
     efcn.mode_choose(23, 9)  # 广东11选5前二直选
     efcn.hand_options(1)  #第一位选取1个号码
     efcn.second_num_choose(1)  #第二位选取1个号码
     efcn.confirm_number_button()  # 点击确认选号
Exemple #15
0
 def test_dantuo_option5_choose_1_5_case(self):
     '''广东11选5胆拖玩法,任选五玩法,1个胆码,5个拖码流程测试'''
     hp = HomePage_leyou(self.driver)
     hp.open()
     ulcn = UnionLottoChooseNumber_leyou(self.driver)
     ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作
     hp.Moveable_float_close()
     hp.gd_11_5_link()  # 点击广东11选5链接
     efcn = ElevenFiveChooseNumber_leyou(self.driver)
     efcn.countdown_text()  # 检查“距离第xxx期截止:”文案是否存在
     efcn.spread_mode_button()  ##选择展开玩法
     efcn.mode_choose(23, 19)  # 选择广东11选5胆拖模式任选五玩法
     efcn.dantuo_choose_num(1, 5)  # 选取1个胆码5个拖码
     total = efcn.total_buy_text()  # 获取注数文本
     self.assertIn("5", total)  # 检查5注
     efcn.confirm_number_button()  # 点击确认选号
Exemple #16
0
 def test_delete_num_case(self):
     '''验证选号页的清除按钮,测试流程'''
     hp = HomePage_leyou(self.driver)
     hp.open()
     ulcn = UnionLottoChooseNumber_leyou(self.driver)
     ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作
     hp.Moveable_float_close()
     hp.gd_11_5_link()  # 点击广东11选5链接
     efcn = ElevenFiveChooseNumber_leyou(self.driver)
     efcn.countdown_text()  # 检查“距离第xxx期截止:”文案是否存在
     efcn.spread_mode_button()  ##选择展开玩法
     efcn.mode_choose(23, 1)  # 广东11选5任选二
     label = efcn.hand_options(2)
     ulcn.clear_number()  #点击清除选号按钮
     label2 = efcn.hand_options(2)
     if label != label2:
         print("清除选号成功")
     else:
         print("清除选号失败")
     efcn.confirm_number_button()  # 点击确认选号
Exemple #17
0
 def test_intelligently_chase_ravise_chase_input12_times_input3_confirm_revise_case(
         self):
     '''【修改方案】输入连续追12期,起始倍数,输入3倍,点击【确定】,【提交】提交订单'''
     hp = HomePage_leyou(self.driver)
     ulcn = UnionLottoChooseNumber_leyou(self.driver)
     efcn = ElevenFiveChooseNumber_leyou(self.driver)
     efcl = EleChooseFiveConfirmLottery_leyou(self.driver)
     ssc_cl = CQSSCConfirmLottery_leyou(self.driver)
     od = OrderDetails_leyou(self.driver)
     l = Login_leyou(self.driver)
     sos = SubmitOrderSuccess_leyou(self.driver)
     cl = ConfirmLottery_leyou(self.driver)
     hp.open()
     hp.Moveable_float_close()
     hp.My_lottery_ticket()  # 点击我的彩票
     l.login_leyou()  # 登录
     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(2)  # 任选2个号
     efcn.confirm_number_button()  # 点击确认选号
     text1 = efcl.lottery_chase_throw_text()
     self.assertIn("1注1期1倍", text1)
     ssc_cl.intelligently_chase_button()  # 点击智能追号
     text = ssc_cl.totalIssue_text()
     ssc_cl.revise_button()  #点击修改方案
     ssc_cl.revise_chase_input(12)  #追号的输入框输入12
     ssc_cl.revise_times_input(3)  #起始倍数输入框输入3
     ssc_cl.revise_confirm()  #点击确认修改
     text1 = ssc_cl.totalIssue_text()
     self.assertIn('12', text1, '追号期数修改失败')  # 检查是否修改追号期数
     self.assertNotEqual(text, text1)
     ssc_cl.submit_button()  # 点击提交按钮
     cl.confirm_and_pay_button()  # 点击确认支付
     hp.Moveable_float_close()  # 如果出现浮层弹框,关闭
     text2 = sos.submit_order_success()  # 获取页面“订单提交成功”文本
     self.assertEqual("订单提交成功", text2)
     trade_name = sos.trade_name_text()  # 获取页面商品名称文本
     self.assertIn("商品名称:乐优炫彩-粤11选5", trade_name)
Exemple #18
0
 def test_orderdetails_page_continue_buy_case(self):
     '''订单详情页面,点击继续购买该方案,可以跳转到选号确认页面,提交订单'''
     hp = HomePage_leyou(self.driver)
     ulcn = UnionLottoChooseNumber_leyou(self.driver)
     efcn = ElevenFiveChooseNumber_leyou(self.driver)
     efcl = EleChooseFiveConfirmLottery_leyou(self.driver)
     od = OrderDetails_leyou(self.driver)
     l = Login_leyou(self.driver)
     sos = SubmitOrderSuccess_leyou(self.driver)
     cl = ConfirmLottery_leyou(self.driver)
     hp.open()
     hp.Moveable_float_close()
     hp.My_lottery_ticket()  #点击我的彩票
     l.login_leyou()  #登录
     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(2)  # 任选两个号
     efcn.confirm_number_button()  # 点击确认选号
     efcl.submit_order_button()  # 点击提交订单给站主
     cl.confirm_and_pay_button()  ##点击确认并支付
     hp.Moveable_float_close()  # 如果出现浮层弹框,关闭
     sos.check_order_details()  #点击查看订单详情
     od.continue_buy()  #点击继续投注该彩种
     efcn.hand_options(3)  # 任选3个号
     efcn.confirm_number_button()  # 点击确认选号
     text1 = efcl.lottery_chase_throw_text()
     self.assertIn("3注1期1倍", text1)
     num1 = efcl.Ele_five_select_number()  # 获取投注确认页的选号
     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)
Exemple #19
0
 def test_intelligently_input_periods_case(self):
     '''进入智能追号页面,输入追11期,点击【提交】提交订单'''
     hp = HomePage_leyou(self.driver)
     ulcn = UnionLottoChooseNumber_leyou(self.driver)
     efcn = ElevenFiveChooseNumber_leyou(self.driver)
     efcl = EleChooseFiveConfirmLottery_leyou(self.driver)
     ssc_cl = CQSSCConfirmLottery_leyou(self.driver)
     od = OrderDetails_leyou(self.driver)
     l = Login_leyou(self.driver)
     sos = SubmitOrderSuccess_leyou(self.driver)
     cl = ConfirmLottery_leyou(self.driver)
     hp.open()
     hp.Moveable_float_close()
     hp.My_lottery_ticket()  # 点击我的彩票
     l.login_leyou()  # 登录
     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(2)  # 任选2个号
     efcn.confirm_number_button()  # 点击确认选号
     text1 = efcl.lottery_chase_throw_text()
     self.assertIn("1注1期1倍", text1)
     ssc_cl.intelligently_chase_button()  # 点击智能追号
     text2 = ssc_cl.totalIssue_num()  # 获取追号期数文本
     ssc_cl.znzh_issue_num_input(11)  #输入追11期
     ssc_cl.totalIssue()  # 更新追号期数
     text = ssc_cl.totalIssue_text()
     self.assertIn(str(text2 + 1), text)  # 检查是否修改追号期数
     ssc_cl.submit_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)
Exemple #20
0
 def test_double_cancel_case(self):
     '''验证点击两次号码取消选号,流程测试'''
     hp = HomePage_leyou(self.driver)
     hp.open()
     ulcn = UnionLottoChooseNumber_leyou(self.driver)
     ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作
     hp.Moveable_float_close()
     hp.gd_11_5_link()  # 点击广东11选5链接
     efcn = ElevenFiveChooseNumber_leyou(self.driver)
     efcn.spread_mode_button()  ##选择展开玩法
     efcn.mode_choose(23, 1)  #广东11选5任选二
     efcn.countdown_text()  # 检查“距离第xxx期截止:”文案是否存在
     lable1 = efcn.hand_options(11)
     total_buy_text = efcn.total_buy_text()
     self.assertIn("55注 ", total_buy_text)
     efcn.hand_options(11)
     total_buy_text = efcn.total_buy_text()
     self.assertIn("请至少选择", total_buy_text)
     lable2 = efcn.hand_options(2)  #任选两个球
     if lable1 != lable2:
         print("双击取消选号成功")
     else:
         print("双击取消选号失败")
     efcn.confirm_number_button()  #确认选号