def test_there_D_play_instruction(self):
     """验证玩法说明"""
     ha = HomePage_lelun(self.driver)
     hb = There_D_choosenumber_lelun(self.driver)
     ha.open()
     ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作
     ha.Moveable_float_close()
     ha.fucai_3D_link()  ###点击3D
     hb.Instruct()##点击右上角...
     hb.Play_instruction()##点击玩法说明
     mur=hb.Group_there_add_play_instruction()
     self.assertEqual('组三和值',mur)
     hb.There_D_know()
Example #2
0
 def test_rx9c_term_case(self):
     """验证期数转换"""
     ha = HomePage_lelun(self.driver)
     hb = RX9C_choosenumber_lelun(self.driver)
     ha.open()
     ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作
     ha.Moveable_float_close()
     ha.victory_defeat_14_link()  # 点击胜负14场
     hb.Term()  #点击期数
     mur = hb.Term_next()  ##点击下一期,并读取文本
     if mur != 0:
         mur1 = hb.Term_t()  #读取显示的文本
         self.assertIn(mur1, mur)
 def test_haobc_dxf_throw_way_case(self):
     '''改变默认投注过关方式流程测试'''
     hp = HomePage_lelun(self.driver)
     hcn = HaobcChooseNumber_lelun(self.driver)
     cl = ConfirmLottery_lelun(self.driver)
     pbc = PaintBallConfirm_lelun(self.driver)
     hp.open()
     hp = HomePage_lelun(self.driver)
     hp.Moveable_float_close()
     hp.Moveable_float_close()
     hp.haobc_link()  ##点击竞篮
     hcn.Play_f()  # 选择玩法
     hcn.Play_dxf()  # 选择大小分
     aa = hcn.sf_choose(8)  # 选择比赛
     if aa == 2:
         hcn.confirm_match()  # 点击确认赛事
         pbc.Pf_pass()  #点击过关方式
         mul = pbc.Pf_pass_nu()  ###读取点击的过关方式
         a = pbc.Pf_pass_text()  ###读取展示的过关方式
         self.assertEqual(a, mul)
 def test_threestar_choose_all_cancel_case(self):
     '''三星直选玩法,选择所有选号,再次点击取消流程'''
     hp = HomePage_lelun(self.driver)
     hp.open()
     l = Login_lelun(self.driver)
     efcn = ElevenFiveChooseNumber_lelun(self.driver)
     hp.Moveable_float_close()  #点击关闭浮窗
     hp.My_lottery_ticket()  #点击我的彩票
     l.login_lelun()  #点击登录
     hp.homepage_link()  #点击首页
     hp.cqssc_link()  #点击重庆时时彩链接
     ssc_cn = CQSSC_ChooseNumber_lelun(self.driver)
     ssc_cn.play_mode()  #选择模式
     ssc_cn.three_star()  #选择三星
     ssc_cn.baiwei_all()
     ssc_cn.shiwei_all()
     ssc_cn.gewei_all()
     aa = efcn.total_buy_text()
     self.assertIn("1000注 ", aa)
     ssc_cn.baiwei_all()
     ssc_cn.shiwei_all()
     ssc_cn.gewei_all()
     aa = efcn.total_buy_text()
     self.assertIn("请每位至少选择1个号码", aa)
Example #5
0
 def test_UnionLotto_Machine_choose_five_delete_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_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_one_num_button()  #点击删除一注
     chase = cl.chase_time_text()  # 获取追号期数
     times = cl.throw_time_text()  # 获取输入的投注倍数
     lottery_num = cl.lottery_number_text()  # 获取投注注数
     self.assertEqual("4", lottery_num)  # 检查投注的注数为4注
     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, "提交订单失败")
     ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作
     hp.Moveable_float_close()
     trade_text = sos.trade_name_text()  # 获取商品名称
     self.assertIn("商品名称:乐仑炫彩-双色球", trade_text)  # 检查商品名称正确
     sos.check_order_details()  # 查看订单详情
     od = OrderDetails_lelun(self.driver)
     od.order_details_check()  # 检查订单详情页
 def test_onestar_clear_num_case(self):
     '''一星玩法,选择5号码,并清除,流程测试'''
     hp = HomePage_lelun(self.driver)
     hp.open()
     l = Login_lelun(self.driver)
     efcn = ElevenFiveChooseNumber_lelun(self.driver)
     ulcn = UnionLottoChooseNumber_lelun(self.driver)
     hp.Moveable_float_close()  # 点击关闭浮窗
     hp.My_lottery_ticket()  # 点击我的彩票
     l.login_lelun()  # 点击登录
     hp.homepage_link()  # 点击首页
     hp.cqssc_link()  # 点击重庆时时彩链接
     ssc_cn = CQSSC_ChooseNumber_lelun(self.driver)
     ssc_cn.play_mode()  # 选择模式
     ssc_cn.one_star()  # 选择一星
     ssc_cn.gewei_random(5)  #选择5个号码
     aa = efcn.total_buy_text()
     self.assertIn("5注", aa)
     ulcn.clear_number()  #清除所有选号
     cc = efcn.total_buy_text()
     self.assertIn("请至少选择1个号码", cc)
     ssc_cn.gewei_random(2)  #选择2个号码
     aa = efcn.total_buy_text()
     self.assertIn("2注", aa)
Example #7
0
 def test_single_basketball_sf_throw_way_case(self):
     '''改变默认投注过关方式流程测试'''
     hp = HomePage_lelun(self.driver)
     hcn = HaobcChooseNumber_lelun(self.driver)
     sbcn = SingleBasketballChooseNumber_lelun(self.driver)
     cl = ConfirmLottery_lelun(self.driver)
     pbc = PaintBallConfirm_lelun(self.driver)
     hp.open()
     hp = HomePage_lelun(self.driver)
     hp.Moveable_float_close()
     hp.Moveable_float_close()
     hp.single_basketball_link()  ##点击竞篮单关
     hcn.Play_f()  # 选择玩法
     hcn.Play_sf()  # 选择胜负
     aa = sbcn.jldg_sf_choose(8)  # 选择比赛
     if aa == 2:
         hcn.confirm_match()  # 点击确认赛事
         pbc.Pf_pass()  #点击过关方式
         mul = pbc.Pf_pass_nu()  ###读取点击的过关方式
         a = pbc.Pf_pass_text()  ###读取展示的过关方式
         self.assertEqual(a, mul)
Example #8
0
 def test_paintball_rqrqspf_10_case(self):
     '''选择一天中所有比赛场次流程测试'''
     ###点击进入双色球选号页面###
     hp = HomePage_lelun(self.driver)
     pbcn = PaintBallChooseNumber_lelun(self.driver)
     hp.open()
     hp.paintball_link()  ##点击竞足
     pbcn.Play_f()  #选择玩法
     pbcn.Play_rqspf()  #选择让球胜平负
     pbcn.rqspf_choose(10)  #选择比赛
Example #9
0
 def test_paintball_rqspf_click_all(self):
     '''点击页面展示所有比赛,测试流程'''
     hp = HomePage_lelun(self.driver)
     pbcn = PaintBallChooseNumber_lelun(self.driver)
     cl = ConfirmLottery_lelun(self.driver)
     hp.open()
     hp.paintball_link()  ##点击竞足
     pbcn.Play_f()  # 选择玩法
     pbcn.Play_rqspf()  # 选择让球胜平负
     pbcn.rqspf_click_all()  # 选择比赛
Example #10
0
 def test_option11_hand_choose2_case(self):
     '''山东11选5,前二组选玩法,任选两个号码流程测试流程'''
     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期截止:”文案是否存在
     efcn.spread_mode_button()  ##选择展开玩法
     efcn.mode_choose(22, 10)  # 广西11选5前二直选
     efcn.hand_options(2)  # 任选2个号码
     efcn.confirm_number_button()  # 点击确认选号
 def test_Play_instruction_case(self):
     """验证玩法说明"""
     ha = HomePage_lelun(self.driver)
     hb = Seven_color_choosenumber_lelun(self.driver)
     hb2 = There_D_choosenumber_lelun(self.driver)
     ha.open()
     ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作
     ha.Moveable_float_close()
     ha.colorful_star_link()  ###点击七星彩
     hb2.Instruct()  ##点击右上角...
     hb.Seven_color_instruct()  ##点击玩法说明
     mur = hb.Seven_color_play()
     self.assertEqual('七星彩玩法', mur)
     hb.Seven_color_know()
 def test_options2_hand_choose11_case(self):
     '''广东11选5,任选二玩法,手选11个号流程测试'''
     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期截止:”文案是否存在
     efcn.spread_mode_button()  ##选择展开玩法
     efcn.mode_choose(23, 1)  # 广东11选5任选二
     efcn.hand_options(11)  # 任选11个号
     efcn.confirm_number_button()  # 点击确认选号
 def test_play_instruction_case(self):
     '''在投注选号页面,点击右上角玩法说明,可以打开和关闭'''
     hp = HomePage_lelun(self.driver)
     tD = There_D_choosenumber_lelun(self.driver)
     ulcn = UnionLottoChooseNumber_lelun(self.driver)
     efcn = ElevenFiveChooseNumber_lelun(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)
Example #14
0
 def test_machine_choose_one_delete_all_case(self):
     '''机选一注,投注确认页点击删除所有选号并确认按钮流程测试'''
     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_one_button()  #机选一注
     efcn.confirm_number_button()  #确认选号
     ecfcl = EleChooseFiveConfirmLottery_lelun(self.driver)
     ecfcl.countdown_text()  # 检查倒计时文案
     check = ecfcl.lottery_chase_throw_text()
     self.assertIn("1注1期1倍", check)
     cl.delete_all_num_button()  #点击删除所有选号
     cl.confirm_delete_button()  #点击确认删除所有选号
     ulcn.machine_choose_button()  # 点击机选
     ulcn.machine_choose_one_button()  # 机选一注
     efcn.confirm_number_button()  # 确认选号
     recheck = ecfcl.lottery_chase_throw_text()
     self.assertIn("1注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()  # 检查订单详情页页面元素
 def test_option14_hand_choose1_1_1_case(self):
     '''广东11选5,乐选三玩法,前三位各选1个号码测试流程'''
     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期截止:”文案是否存在
     efcn.spread_mode_button()  ##选择展开玩法
     efcn.mode_choose(23, 13)  # 广东11选5乐选三
     efcn.different_three_num(1,1,1)#前三位各选一个号码
     efcn.confirm_number_button()#点击确认选号
 def test_option16_hand_choose3_case(self):
     '''广东11选5,乐选五玩法,任选5号码测试流程'''
     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期截止:”文案是否存在
     efcn.spread_mode_button()  ##选择展开玩法
     efcn.mode_choose(23, 15)  # 广东11选5乐选五
     efcn.hand_options(5)  #任意选取5个号码
     efcn.confirm_number_button()  # 点击确认选号
 def test_paintball_spf_8_case(self):
     '''选择8场比赛,流程测试'''
     ###点击进入竞彩足球选号页面###
     hp = HomePage_lelun(self.driver)
     pbcn = PaintBallChooseNumber_lelun(self.driver)
     cl = ConfirmLottery_lelun(self.driver)
     hp.open()
     hp.Moveable_float_close()
     hp.paintball_link()  ##点击竞足
     pbcn.Play_f()  #选择玩法
     pbcn.Play_spf()  #选择胜平负
     aa = pbcn.spf_choose(8)  #选择比赛
     if aa == 2:
         pbcn.confirm_match()  #确认所选场次
         cl.submit_order_to_station_owner_button()  #提交订单给站主
Example #18
0
 def test_Play_instruction_case(self):
     """验证玩法说明"""
     ha = HomePage_lelun(self.driver)
     hb = RX9C_choosenumber_lelun(self.driver)
     hb1=Arrang_there_choosenumber_lelun(self.driver)
     hb2 = There_D_choosenumber_lelun(self.driver)
     ha.open()
     ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作
     ha.Moveable_float_close()
     ha.optional_9_link()  # 点击任选9场
     hb2.Instruct()##点击右上角...
     hb1.Arrang_there_instruct()##点击玩法说明
     mur = hb.Rx9c_play()
     self.assertEqual('任选9场', mur)
     hb1.Arrany_there_know()
 def test_options10_hand_choose1_1_case(self):
     '''广东11选5,前二直选玩法,前两位各选1个号码流程测试'''
     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期截止:”文案是否存在
     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()  # 点击确认选号
 def test_there_D_history(self):
     """验证历史走势"""
     ha = HomePage_lelun(self.driver)
     hb = There_D_choosenumber_lelun(self.driver)
     ha.open()
     ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作
     ha.Moveable_float_close()
     ha.fucai_3D_link()  ###点击3D
     hb.Instruct()  ##点击右上角...
     hb.History()###点击历史投注
     mur=hb.Charts()
     if mur=='':
         self.assertEqual('a',mur)
     else:
         print("历史走势展示正常")
Example #21
0
 def test_haobc_rqsf_8_case(self):
     '''选择8场比赛,流程测试'''
     ###点击进入双色球选号页面###
     hp = HomePage_lelun(self.driver)
     hcn = HaobcChooseNumber_lelun(self.driver)
     cl = ConfirmLottery_lelun(self.driver)
     hp.open()
     hp.Moveable_float_close()
     hp.haobc_link()  ##点击竞篮
     hcn.Play_f()  #选择玩法
     hcn.Play_sf()  #选择胜负
     aa = hcn.sf_choose(8)  #选择比赛
     if aa == 2:
         hcn.confirm_match()  #确认所选场次
         cl.submit_order_to_station_owner_button()  #提交订单给站主
Example #22
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)
Example #23
0
 def test_singlefoot_rqspf_10_case(self):
     '''选择一天中所有比赛场次流程测试'''
     ###点击进入竞彩足球选号页面###
     hp = HomePage_lelun(self.driver)
     pbcn = PaintBallChooseNumber_lelun(self.driver)
     sfcn = SingleFootChooseNumber_lelun(self.driver)
     hp.open()
     hp.Moveable_float_close()
     hp.single_foot_link()  ##点击竞足
     pbcn.Play_f()  # 选择玩法
     pbcn.Play_rqspf()  # 选择让球胜平负
     aa = sfcn.jzdg_rqspf_choose(10)  # 选择比赛
     if aa == 0:
         text = sfcn.Play_dgp_text()
         self.assertIn("单关配", text)
Example #24
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)
Example #25
0
 def test_singlefoot_rqspf_click_all(self):
     '''点击页面展示所有比赛,测试流程'''
     hp = HomePage_lelun(self.driver)
     pbcn = PaintBallChooseNumber_lelun(self.driver)
     sfcn = SingleFootChooseNumber_lelun(self.driver)
     cl = ConfirmLottery_lelun(self.driver)
     hp.open()
     hp.Moveable_float_close()
     hp.single_foot_link()  ##点击竞足
     pbcn.Play_f()  # 选择玩法
     pbcn.Play_rqspf()  # 选择让球胜平负
     aa = sfcn.jzdg_rqspf_click_all()  # 选择比赛
     if aa == 0:
         text = sfcn.Play_dgp_text()
         self.assertIn("单关配", text)
 def test_Login_case(self):
     """验证登录流程"""
     hp = HomePage_lelun(self.driver)
     hb = MyTicket_lelun(self.driver)
     hl = Login_lelun(self.driver)
     hp.open()
     ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作
     hp.Moveable_float_close()
     hp.My_lottery_ticket()  ##点击我的彩票
     hl.login_lelun()  ##登录
     mur = hb.Account()
     self.assertEqual("17602882784", mur)
Example #27
0
 def test_option12_hand_choose11_11_11_case(self):
     '''山东11选5,前三直选玩法,前三位各选11号码测试流程'''
     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期截止:”文案是否存在
     efcn.spread_mode_button()  ##选择展开玩法
     efcn.mode_choose(22, 11)  # 广西11选5前三直选
     efcn.hand_options(11)  # 第一位选取11个号码
     efcn.second_num_choose(11)  # 第二位选取11个号码
     efcn.third_num_choose(11)#第三位选取11个号码
     efcn.confirm_number_button()  # 点击确认选号
Example #28
0
 def test_dantuo_option3_choose_2_2_case(self):
     '''广西11选5胆拖玩法,任选三玩法,2个胆码,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, 17)  # 选择广西11选5胆拖模式任选三玩法
     efcn.dantuo_choose_num(2, 2)  # 选取2个胆码2个拖码
     total = efcn.total_buy_text()  # 获取注数文本
     self.assertIn("2", total)  # 检查2注
     efcn.confirm_number_button()  # 点击确认选号
 def test_dantuo_option4_choose_1_4_case(self):
     '''广东11选5胆拖玩法,任选四玩法,1个胆码,4个拖码流程测试'''
     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期截止:”文案是否存在
     efcn.spread_mode_button()  ##选择展开玩法
     efcn.mode_choose(23, 18)  # 选择广东11选5胆拖模式任选四玩法
     efcn.dantuo_choose_num(1, 4)  # 选取1个胆码4个拖码
     total = efcn.total_buy_text()  # 获取注数文本
     self.assertIn("4", total)  # 检查4注
     efcn.confirm_number_button()  # 点击确认选号
Example #30
0
 def test_single_basketball_sf_8_case(self):
     '''选择8场比赛,流程测试'''
     ###点击进入双色球选号页面###
     hp = HomePage_lelun(self.driver)
     hcn = HaobcChooseNumber_lelun(self.driver)
     sbcn = SingleBasketballChooseNumber_lelun(self.driver)
     cl = ConfirmLottery_lelun(self.driver)
     hp.open()
     hp.Moveable_float_close()
     hp.single_basketball_link()  ##点击竞篮单关单关
     hcn.Play_f()  #选择玩法
     hcn.Play_sf()  #选择胜负
     aa = sbcn.jldg_sf_choose(8)  #选择比赛
     if aa > 0:
         hcn.confirm_match()  #确认所选场次
         cl.submit_order_to_station_owner_button()  #提交订单给站主