def test_UnionLotto_Hand_r19_case(self):
     '''双色球选取19个红球,第19个红球提示“红球不能超过18个”测试'''
     ###点击进入双色球选号页面###
     hp = HomePage_lelun(self.driver)
     hp.open()
     ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作
     hp.Moveable_float_close()
     hp.UnionLotto_link()  # 点击双色球链接
     ulcn = UnionLottoChooseNumber_lelun(self.driver)
     ulcn.u_red_label19()  # 选取19个红球
     text = ulcn.out_of_num()  #获取超过18个红球时的toast提示信息
     self.assertIn("红球不能超过18个", text)
     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, "提交订单失败")
예제 #2
0
 def test_option13_choose_out_case(self):
     '''广西11选5普通玩法,乐选三玩法,三位各选2个号码,提示“只支持单式投注”流程测试'''
     hp = HomePage_lelun(self.driver)
     hp.open()
     ulcn = UnionLottoChooseNumber_lelun(self.driver)
     ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作
     hp.Moveable_float_close()
     hp.gx_11_5_link()  # 点击广西11选5链接
     efcn = ElevenFiveChooseNumber_lelun(self.driver)
     efcn.countdown_text()  # 检查“距离第xxx期截止:”文案是否存在
     efcn.spread_mode_button()  ##选择展开玩法
     efcn.mode_choose(24, 13)  # 选择广西11选5普通模式乐选三玩法
     efcn.lexuan_choose(2, 1)  # 第一位选取2个号码
     toast = ulcn.out_of_num()  # 获取toast提示信息
     self.assertEqual("只支持单注投注", toast)
     efcn.lexuan_choose(2, 2)  # 第二位选取2个号码
     toast = ulcn.out_of_num()  # 获取toast提示信息
     self.assertEqual("只支持单注投注", toast)
     js = "window.scroll(0,300)"
     self.driver.execute_script(js)
     efcn.lexuan_choose(2, 3)  # 第三位选取2个号码
     toast = ulcn.out_of_num()  # 获取toast提示信息
     self.assertEqual("只支持单注投注", toast)
예제 #3
0
 def test_dantuo_option4_choose_out_case(self):
     '''广西11选5胆拖玩法,任选四玩法,4个胆码,提示“胆码个数超过限制”流程测试'''
     hp = HomePage_lelun(self.driver)
     hp.open()
     ulcn = UnionLottoChooseNumber_lelun(self.driver)
     ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作
     hp.Moveable_float_close()
     hp.gx_11_5_link()  # 点击广西11选5链接
     efcn = ElevenFiveChooseNumber_lelun(self.driver)
     efcn.countdown_text()  # 检查“距离第xxx期截止:”文案是否存在
     efcn.spread_mode_button()  ##选择展开玩法
     efcn.mode_choose(24, 18)  # 选择广西11选5胆拖模式任选四玩法
     efcn.hand_options(4)  # 选取4个胆码
     toast = ulcn.out_of_num()  # 获取toast提示信息
     self.assertEqual("胆码个数超过限制!", toast)
예제 #4
0
 def test_option14_choose_out_case(self):
     '''广西11选5普通玩法,乐选四玩法,选取5个号码,提示“只支持单式投注”流程测试'''
     hp = HomePage_lelun(self.driver)
     hp.open()
     ulcn = UnionLottoChooseNumber_lelun(self.driver)
     ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作
     hp.Moveable_float_close()
     hp.gx_11_5_link()  # 点击广西11选5链接
     efcn = ElevenFiveChooseNumber_lelun(self.driver)
     efcn.countdown_text()  # 检查“距离第xxx期截止:”文案是否存在
     efcn.spread_mode_button()  ##选择展开玩法
     efcn.mode_choose(24, 14)  # 选择广西11选5普通模式乐选四玩法
     efcn.hand_options(5)  # 选取5个号码
     toast = ulcn.out_of_num()  # 获取toast提示信息
     self.assertEqual("只支持单注投注", toast)