コード例 #1
0
 def test_option2_many_lottery_case(self):#####--mj21071211
     '''手动选号,单式,多注一倍,提交订单'''
     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.gx_11_5_link()  # 点击广西11选5链接
     efcn = ElevenFiveChooseNumber_leyou(self.driver)
     efcn.countdown_text()  # 检查“距离第xxx期截止:”文案是否存在
     efcn.spread_mode_button()  ##选择展开玩法
     efcn.mode_choose(24, 1)  # 广西11选5任选二
     efcn.hand_options(2)  # 任选两个号
     efcn.confirm_number_button()  # 点击确认选号
     efcl.continue_choose_num()#点击继续选号
     efcn.hand_options(2)#任选两个号码
     efcn.confirm_number_button()#点击确认选号
     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)
コード例 #2
0
 def test_onestar_machine_five_case(self):
     '''投注确认页,点击【机选5注】,提交订单'''
     hp = HomePage_leyou(self.driver)
     hp.open()
     l = Login_leyou(self.driver)
     efcn = ElevenFiveChooseNumber_leyou(self.driver)
     ulcn = UnionLottoChooseNumber_leyou(self.driver)
     efcl = EleChooseFiveConfirmLottery_leyou(self.driver)
     cl = ConfirmLottery_leyou(self.driver)
     sos = SubmitOrderSuccess_leyou(self.driver)
     hp.Moveable_float_close()  # 点击关闭浮窗
     hp.My_lottery_ticket()  # 点击我的彩票
     l.login_leyou()  # 点击登录
     hp.homepage_link()  # 点击首页
     hp.cqssc_link()  # 点击重庆时时彩链接
     ssc_cn = CQSSC_ChooseNumber_leyou(self.driver)
     ssc_cn.play_mode()  # 选择模式
     ssc_cn.one_star()  # 选择一星
     ssc_cn.gewei_random(1)  # 选择1个号码
     aa = efcn.total_buy_text()
     self.assertIn("1注", aa)
     efcn.confirm_number_button()  # 点击确认选号
     efcl.machine_choose_five()#点击机选5注
     bb = efcl.lottery_chase_throw_text()  # 获取注数倍数
     self.assertIn("6注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)
コード例 #3
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.sd_11_5_link()  # 点击山东11选5链接
     efcn = ElevenFiveChooseNumber_leyou(self.driver)
     efcn.countdown_text()  # 检查“距离第xxx期截止:”文案是否存在
     efcn.spread_mode_button()  ##选择展开玩法
     efcn.mode_choose(22, 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()  # 点击确认支付
コード例 #4
0
 def test_jxks_many_note_many_double_pause_case(self):
     """多注多倍号码,机选"""
     ha = HomePage_leyou(self.driver)
     hb = GXKS_ChooseNumber_leyou(self.driver)
     hb1 = ElevenFiveChooseNumber_leyou(self.driver)
     hc = ConfirmLottery_leyou(self.driver)
     hc1 = EleChooseFiveConfirmLottery_leyou(self.driver)
     hl = Login_leyou(self.driver)
     hd = LessPaySucess_leyou(self.driver)
     ha.open()
     ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作
     ha.Moveable_float_close()
     ha.guangxi_express_three_link()  # 点击广西快三
     hb.play_jxks_ethfx()  ##点击二同号复选
     hb.Ethfx(5)  ##点击5注
     hb1.confirm_number_button()###点击确认选号
     hc1.throw_times_input(13)  ##输入倍数13倍
     hc1.machine_choose_one()##点击机选
     mur=hc1.lottery_chase_throw_text()#读取注数
     self.assertEqual('6注1期13倍共156元',mur)
     hc1.submit_order_button()  # 点击提交给站主
     hl.login_leyou()  # 输入账号,密码
     hc1.submit_order_button()  # 点击提交给站主
     hc.confirm_and_pay_button()  # 点击确认支付
     mur1 = hd.assect_pay()  ##读取支付状态文本
     self.assertEqual('订单提交成功', mur1)
コード例 #5
0
 def test_jxks_many_note_many_double_pause_znxh_case(self):
     """多注多倍号码,机选,智能选号"""
     ha = HomePage_leyou(self.driver)
     hb = GXKS_ChooseNumber_leyou(self.driver)
     hb1 = ElevenFiveChooseNumber_leyou(self.driver)
     hc = ConfirmLottery_leyou(self.driver)
     hc1 = EleChooseFiveConfirmLottery_leyou(self.driver)
     hl = Login_leyou(self.driver)
     hd = LessPaySucess_leyou(self.driver)
     ssc_cl = CQSSCConfirmLottery_leyou(self.driver)
     ha.open()
     ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作
     ha.Moveable_float_close()
     ha.guangxi_express_three_link()  #点击广西快三
     hb.play_jxks_add()  ##点击和值
     hb.Add_choosenumber(2)  ##点击5注
     hb1.confirm_number_button()  ###点击确认选号
     hc1.throw_times_input(13)  ##输入倍数13倍
     hc1.machine_choose_one()  ##点击机选
     mur = hc1.lottery_chase_throw_text()  #读取注数
     self.assertEqual('3注1期13倍共78元', mur)
     ssc_cl.intelligently_chase_button()  # 点击智能追号
     ssc_cl.revise_button()  # 点击修改方案
     ssc_cl.revise_chase_input(84)  # 追号的输入框输入12
     ssc_cl.revise_confirm()  # 点击确认修改
     text = ssc_cl.totalIssue_text()
     self.assertNotIn('10期', text, '追号期数修改失败')  # 检查是否修改追号期数
     ssc_cl.submit_button()  # 点击提交按钮
     hl.login_leyou()  # 输入账号,密码
     hc1.submit_order_button()  # 点击提交给站主
     hc.confirm_and_pay_button()  # 点击确认支付
     mur1 = hd.assect_pay()  ##读取支付状态文本
     self.assertEqual('订单提交成功', mur1)
コード例 #6
0
 def test_jxks_choosenumber_all_case(self):
     """验证选号页选号功能"""
     ha = HomePage_leyou(self.driver)
     hb = GXKS_ChooseNumber_leyou(self.driver)
     hb1 = ElevenFiveChooseNumber_leyou(self.driver)
     hc = ConfirmLottery_leyou(self.driver)
     hc1 = EleChooseFiveConfirmLottery_leyou(self.driver)
     hl = Login_leyou(self.driver)
     hd = LessPaySucess_leyou(self.driver)
     ha.open()
     ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作
     ha.Moveable_float_close()
     ha.guangxi_express_three_link()  # 点击广西快三
     hb.play_jxks_ethfx()  ##点击二同号复选
     hb.Ethfx_all()  ##点击所有选号
     hb.Ethfx(1)  ##点击1注
     hb1.confirm_number_button()  ###点击确认选号
     mur = hc1.lottery_chase_throw_text()  # 读取注数
     self.assertEqual('1注1期1倍共2元', mur)
     hc1.submit_order_button()  # 点击提交给站主
     #hl.new_user_login_tab()  # 点击新登录
     hl.login_leyou()  # 输入账号,密码
     hc1.submit_order_button()  # 点击提交给站主
     hc.confirm_and_pay_button()  # 点击确认支付
     mur1 = hd.assect_pay()  ##读取支付状态文本
     self.assertEqual('订单提交成功', mur1)
コード例 #7
0
 def test_jxks_many_note_X_case(self):
     """多注号码,点击左边X按钮"""
     ha = HomePage_leyou(self.driver)
     hb = GXKS_ChooseNumber_leyou(self.driver)
     hb1 = ElevenFiveChooseNumber_leyou(self.driver)
     hc = ConfirmLottery_leyou(self.driver)
     hc1 = EleChooseFiveConfirmLottery_leyou(self.driver)
     hl = Login_leyou(self.driver)
     hd = LessPaySucess_leyou(self.driver)
     ssc_cl = CQSSCConfirmLottery_leyou(self.driver)
     ha.open()
     ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作
     ha.Moveable_float_close()
     ha.guangxi_express_three_link()  # 点击广西快三
     hb.play_jxks_ethfx()  ##点击二同号复选
     hb.Ethfx(1)  ##点击1注
     hb1.confirm_number_button()###点击确认选号
     hc1.machine_choose_one()##点击机选
     hc1.machine_choose_one()  ##点击机选
     mur = hc1.lottery_chase_throw_text()  # 读取注数
     self.assertEqual('3注1期1倍共6元', mur)
     hc.n_event_count()  ##点击第1场赛事的X按钮
     mur = hc1.lottery_chase_throw_text()  # 读取注数
     self.assertEqual('2注1期1倍共4元', mur)
     hc1.submit_order_button()  # 点击提交给站主
     hl.login_leyou()  # 输入账号,密码
     hc1.submit_order_button()  # 点击提交给站主
     hc.confirm_and_pay_button()  # 点击确认支付
     mur1 = hd.assect_pay()  ##读取支付状态文本
     self.assertEqual('订单提交成功', mur1)
コード例 #8
0
 def test_threestar_choose_one_continue_buy_case(self):
     '''验证订单详情页【继续购买该方案】页面跳转至投注确认页,流程'''
     hp = HomePage_leyou(self.driver)
     hp.open()
     l = Login_leyou(self.driver)
     efcn = ElevenFiveChooseNumber_leyou(self.driver)
     efcl = EleChooseFiveConfirmLottery_leyou(self.driver)
     cl = ConfirmLottery_leyou(self.driver)
     sos = SubmitOrderSuccess_leyou(self.driver)
     od = OrderDetails_leyou(self.driver)
     hp.Moveable_float_close()  #点击关闭浮窗
     hp.My_lottery_ticket()  #点击我的彩票
     l.login_leyou()  #点击登录
     hp.homepage_link()  #点击首页
     hp.Moveable_float_close()  # 点击关闭浮窗
     hp.cqssc_link()  #点击重庆时时彩链接
     ssc_cn = CQSSC_ChooseNumber_leyou(self.driver)
     ssc_cn.play_mode()  #选择模式
     ssc_cn.three_star()  #选择三星
     ssc_cn.baiwei_random(1)
     ssc_cn.shiwei_random(1)
     ssc_cn.gewei_random(1)
     efcn.confirm_number_button()  # 点击确认选号
     efcl.submit_order_button()  # 点击提交订单给站主
     cl.confirm_and_pay_button()  # 点击确认并支付
     hp.Moveable_float_close()  # 如果出现浮层弹框,关闭
     sos.check_order_details()  # 点击查看订单详情
     od.Scheme()  #点击继续购买该方案
     efcl.submit_order_button()  # 点击提交订单给站主
     cl.confirm_and_pay_button()  # 点击确认并支付
     text = cl.lottery_confirm_num_page_text()
     self.assertEqual("投注确认", text, '页面未跳转至投注确认页')
コード例 #9
0
 def test_threestar_choose_one_case(self):
     '''三星直选玩法,个位十位百位各选一个号码并提交订单流程测试'''
     hp = HomePage_leyou(self.driver)
     hp.open()
     l = Login_leyou(self.driver)
     efcn = ElevenFiveChooseNumber_leyou(self.driver)
     efcl = EleChooseFiveConfirmLottery_leyou(self.driver)
     cl = ConfirmLottery_leyou(self.driver)
     sos = SubmitOrderSuccess_leyou(self.driver)
     od = OrderDetails_leyou(self.driver)
     hp.Moveable_float_close()  #点击关闭浮窗
     hp.My_lottery_ticket()  #点击我的彩票
     l.login_leyou()  #点击登录
     hp.homepage_link()  #点击首页
     hp.Moveable_float_close()  # 点击关闭浮窗
     hp.cqssc_link()  #点击重庆时时彩链接
     ssc_cn = CQSSC_ChooseNumber_leyou(self.driver)
     ssc_cn.play_mode()  #选择模式
     ssc_cn.three_star()  #选择三星
     num1 = ssc_cn.three_star_select(1, 1, 1)  #百十个位各选一个数字
     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()  #点击查看订单详情
     num2 = od.bet_number()  #获取页面投注号码
     self.assertIn(num1, num2)
コード例 #10
0
 def test_fivestar_choose_all_case(self):
     '''五星直选玩法,每位各选所有号码'''
     hp = HomePage_leyou(self.driver)
     hp.open()
     l = Login_leyou(self.driver)
     efcn = ElevenFiveChooseNumber_leyou(self.driver)
     efcl = EleChooseFiveConfirmLottery_leyou(self.driver)
     cl = ConfirmLottery_leyou(self.driver)
     sos = SubmitOrderSuccess_leyou(self.driver)
     hp.Moveable_float_close()  # 点击关闭浮窗
     hp.My_lottery_ticket()  # 点击我的彩票
     l.login_leyou()  # 点击登录
     hp.homepage_link()  # 点击首页
     hp.cqssc_link()  # 点击重庆时时彩链接
     ssc_cn = CQSSC_ChooseNumber_leyou(self.driver)
     ssc_cn.play_mode()  # 选择模式
     ssc_cn.five_star()  # 选择五星
     ssc_cn.wanwei_all()
     ssc_cn.qianwei_all()
     ssc_cn.baiwei_all()
     self.driver.execute_script("window.scroll(0,300)")
     ssc_cn.shiwei_all()
     ssc_cn.gewei_all()
     aa = efcn.total_buy_text()
     self.assertIn("100000注 ", aa)
     efcn.confirm_number_button()  # 点击确认选号
     efcl.submit_order_button()  # 点击提交订单给站主
     cl.confirm_and_pay_button()  # 点击确认并支付
     toast = cl.out_max_pay()
     self.assertEqual("投注金额不能大于100000元", toast)
コード例 #11
0
 def test_jxks_a_note_many_double_Continue_case(self):
     """1注多倍,继续选号"""
     ha = HomePage_leyou(self.driver)
     hb = GXKS_ChooseNumber_leyou(self.driver)
     hb1 = ElevenFiveChooseNumber_leyou(self.driver)
     hc = JXKS_Confirm_leyou(self.driver)
     hc1 = EleChooseFiveConfirmLottery_leyou(self.driver)
     hc2 = ConfirmLottery_leyou(self.driver)
     hl = Login_leyou(self.driver)
     hd = LessPaySucess_leyou(self.driver)
     ha.open()
     ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作
     ha.Moveable_float_close()
     ha.guangxi_express_three_link()  # 点击广西快三
     hb.play_jxks_slhtx()  ##点击三连号通选
     hb.Slhtx_th()  ##点击选号
     hb1.confirm_number_button()  ###点击确认选号
     hc1.throw_times_input(13)  ##输入倍数13倍
     hc.Button_less()  ###点击倍数-号
     hc.Cont()  ###点击继续选号
     hb.Slhtx_th()  ##点击选号
     hb1.confirm_number_button()  ###点击确认选号
     mur = hc1.lottery_chase_throw_text()  #读取注数
     self.assertEqual('2注1期12倍共48元', mur)
     hc1.submit_order_button()  # 点击提交给站主
     hl.login_leyou()  # 输入账号,密码
     hc1.submit_order_button()  # 点击提交给站主
     hc2.confirm_and_pay_button()  # 点击确认支付
     mur1 = hd.assect_pay()  ##读取支付状态文本
     self.assertEqual('订单提交成功', mur1)
コード例 #12
0
 def test_fivestar_choose_double_case(self):
     '''五星直选玩法,每位各选多个号码并提交订单流程测试'''
     hp = HomePage_leyou(self.driver)
     hp.open()
     l = Login_leyou(self.driver)
     efcn = ElevenFiveChooseNumber_leyou(self.driver)
     efcl = EleChooseFiveConfirmLottery_leyou(self.driver)
     cl = ConfirmLottery_leyou(self.driver)
     sos = SubmitOrderSuccess_leyou(self.driver)
     hp.Moveable_float_close()  # 点击关闭浮窗
     hp.My_lottery_ticket()  # 点击我的彩票
     l.login_leyou()  # 点击登录
     hp.homepage_link()  # 点击首页
     hp.cqssc_link()  # 点击重庆时时彩链接
     ssc_cn = CQSSC_ChooseNumber_leyou(self.driver)
     ssc_cn.play_mode()  # 选择模式
     ssc_cn.five_star()  # 选择五星
     ssc_cn.wanwei_random(2)
     ssc_cn.qianwei_random(2)
     ssc_cn.baiwei_random(2)
     self.driver.execute_script("window.scroll(0,300)")
     ssc_cn.shiwei_random(2)
     ssc_cn.gewei_random(2)
     aa = efcn.total_buy_text()
     self.assertIn("32注 ", 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)
コード例 #13
0
 def test_twostar_throw_chase2throw2_case(self):
     '''投注确认页,输入追2期投2倍,提交订单'''
     hp = HomePage_leyou(self.driver)
     hp.open()
     l = Login_leyou(self.driver)
     efcn = ElevenFiveChooseNumber_leyou(self.driver)
     ulcn = UnionLottoChooseNumber_leyou(self.driver)
     efcl = EleChooseFiveConfirmLottery_leyou(self.driver)
     cl = ConfirmLottery_leyou(self.driver)
     sos = SubmitOrderSuccess_leyou(self.driver)
     hp.Moveable_float_close()  # 点击关闭浮窗
     hp.My_lottery_ticket()  # 点击我的彩票
     l.login_leyou()  # 点击登录
     hp.homepage_link()  # 点击首页
     hp.cqssc_link()  # 点击重庆时时彩链接
     ssc_cn = CQSSC_ChooseNumber_leyou(self.driver)
     ssc_cn.play_mode()  # 选择模式
     ssc_cn.two_star()  # 选择两星
     ssc_cn.shiwei_random(2)
     ssc_cn.gewei_random(2)
     efcn.confirm_number_button()  # 点击确认选号
     efcl.chase_ticket_input(2)  #输入追2期
     efcl.throw_times_input(2)  #输入投注倍数2倍
     bb = efcl.lottery_chase_throw_text()  # 获取注数倍数
     self.assertIn("4注2期2倍", bb)
     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("商品名称:乐优炫彩-重庆时时彩", trade_name)
コード例 #14
0
 def test_machine_choose_five_button_case(self):
     '''投注确认页“机选五注”按钮测试流程'''
     hp = HomePage_leyou(self.driver)
     ulcn = UnionLottoChooseNumber_leyou(self.driver)
     hp.open()
     ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作
     hp.Moveable_float_close()
     hp.sd_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()  # 检查倒计时文案
     ecfcl.machine_choose_five()  # 点击“机选5注”按钮
     check = ecfcl.lottery_chase_throw_text()  # 获取投注注数、追号期数、投注倍数
     self.assertIn("6注1期1倍", check)  ##验证投注注数、投注期号、投注倍数
     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)
     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()  # 检查订单详情页页面元素
コード例 #15
0
 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()  # 检查订单详情页页面元素
コード例 #16
0
 def test_threestar_choose_one_continue_buy_caizhong_case(self):
     '''验证购买成功页【点击继续投注该彩种】,页面跳转至选号页面'''
     hp = HomePage_leyou(self.driver)
     hp.open()
     l = Login_leyou(self.driver)
     efcn = ElevenFiveChooseNumber_leyou(self.driver)
     efcl = EleChooseFiveConfirmLottery_leyou(self.driver)
     cl = ConfirmLottery_leyou(self.driver)
     sos = SubmitOrderSuccess_leyou(self.driver)
     od = OrderDetails_leyou(self.driver)
     hp.Moveable_float_close()  #点击关闭浮窗
     hp.My_lottery_ticket()  #点击我的彩票
     l.login_leyou()  #点击登录
     hp.homepage_link()  #点击首页
     hp.Moveable_float_close()  # 点击关闭浮窗
     hp.cqssc_link()  #点击重庆时时彩链接
     ssc_cn = CQSSC_ChooseNumber_leyou(self.driver)
     ssc_cn.play_mode()  #选择模式
     ssc_cn.three_star()  #选择三星
     num1 = ssc_cn.three_star_select(1, 1, 1)
     efcn.confirm_number_button()  # 点击确认选号
     efcl.submit_order_button()  # 点击提交订单给站主
     cl.confirm_and_pay_button()  # 点击确认并支付
     hp.Moveable_float_close()  # 如果出现浮层弹框,关闭
     sos.Continue_buy()  #点击继续投注该彩种
     cc = efcn.total_buy_text()
     self.assertIn("请每位至少选择1个号码", cc, '页面未跳转至选号页面')
コード例 #17
0
 def test_machine_choose_one_delete_all_cancel_case(self):
     '''机选一注,投注确认页点击删除所有选号按钮并取消删除流程测试'''
     hp = HomePage_leyou(self.driver)
     cl = ConfirmLottery_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.delete_all_num_button()  #点击删除所有选号
     cl.cancel_delete_button()  #点击取消删除所有选号
     recheck = ecfcl.lottery_chase_throw_text()
     self.assertIn("1注1期1倍", recheck)
     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.order_details_check()  # 检查订单详情页页面元素
コード例 #18
0
 def test_choose_number_history_recommendation_num_case(self):
     '''选号页面,右上方隐藏的“历史走势”按钮,点击【使用推荐号码】,提交订单'''
     hp = HomePage_leyou(self.driver)
     hp.open()
     l = Login_leyou(self.driver)
     efcn = ElevenFiveChooseNumber_leyou(self.driver)
     ulcn = UnionLottoChooseNumber_leyou(self.driver)
     ssc_cn = CQSSC_ChooseNumber_leyou(self.driver)
     ht = HistoricalTrend_leyou(self.driver)
     efcl = EleChooseFiveConfirmLottery_leyou(self.driver)
     cl = ConfirmLottery_leyou(self.driver)
     sos = SubmitOrderSuccess_leyou(self.driver)
     od = OrderDetails_leyou(self.driver)
     hp.Moveable_float_close()  # 点击关闭浮窗
     hp.My_lottery_ticket()  # 点击我的彩票
     l.login_leyou()  # 点击登录
     hp.homepage_link()  # 点击首页
     hp.Moveable_float_close()  # 点击关闭浮窗
     hp.cqssc_link()  # 点击重庆时时彩链接
     ulcn.There_clock()  #点击。。。
     ssc_cn.history_trend()  #点击历史走势
     ht.use_recommend_num_button()  #点击使用推荐号码
     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)
     trade_name = sos.trade_name_text()  # 获取页面商品名称文本
     self.assertIn("商品名称:乐优炫彩-重庆时时彩", trade_name)
コード例 #19
0
 def test_jxks_many_note_many_double_Continue_znzh_tj_case(self):
     """多注多倍,继续选号,智能追号,提交"""
     ha = HomePage_leyou(self.driver)
     hb = GXKS_ChooseNumber_leyou(self.driver)
     hb1 = ElevenFiveChooseNumber_leyou(self.driver)
     hc = JXKS_Confirm_leyou(self.driver)
     hc1 = EleChooseFiveConfirmLottery_leyou(self.driver)
     hc2 = ConfirmLottery_leyou(self.driver)
     hl = Login_leyou(self.driver)
     hd = LessPaySucess_leyou(self.driver)
     ssc_cl = CQSSCConfirmLottery_leyou(self.driver)
     ha.open()
     ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作
     ha.Moveable_float_close()
     ha.guangxi_express_three_link()  # 点击广西快三
     hb.play_jxks_ethfx()  ##点击二同号复选
     hb.Ethfx(2)  ##点击2注
     hb1.confirm_number_button()###点击确认选号
     hc.Button_add()  #点击倍数+号
     hc.Cont()###点击继续选号
     hb.Ethfx(1)##点击1注
     hb1.confirm_number_button()###点击确认选号
     mur=hc1.lottery_chase_throw_text()#读取注数
     self.assertEqual('3注1期2倍共12元',mur)
     ssc_cl.intelligently_chase_button()  # 点击智能追号
     ssc_cl.submit_button()  # 点击提交按钮
     hl.login_leyou()  # 输入账号,密码
     hc1.submit_order_button()  # 点击提交给站主
     hc2.confirm_and_pay_button()  # 点击确认支付
     mur1 = hd.assect_pay()  ##读取支付状态文本
     self.assertEqual('订单提交成功', mur1)
コード例 #20
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)
コード例 #21
0
 def test_jxks_less_term_case(self):
     """1注号码,点击-按钮,添加期数"""
     ha = HomePage_leyou(self.driver)
     hb = GXKS_ChooseNumber_leyou(self.driver)
     hb1 = ElevenFiveChooseNumber_leyou(self.driver)
     hc = ConfirmLottery_leyou(self.driver)
     hc1 = EleChooseFiveConfirmLottery_leyou(self.driver)
     hl = Login_leyou(self.driver)
     hd = LessPaySucess_leyou(self.driver)
     ssc_cl = CQSSCConfirmLottery_leyou(self.driver)
     ha.open()
     ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作
     ha.Moveable_float_close()
     ha.guangxi_express_three_link()  # 点击广西快三
     hb.play_jxks_ethfx()  ##点击二同号复选
     hb.Ethfx(1)  ##点击1注
     hb1.confirm_number_button()  ###点击确认选号
     hc1.chase_ticket_button()  ###展开期数按钮
     hc.chase_ticket_button_twenty()  ##点击20期
     hc1.chase_sub_button()  ###点击-按钮,期数
     mur = hc1.lottery_chase_throw_text()  # 读取注数
     self.assertEqual('1注19期1倍共38元', mur)
     hc1.submit_order_button()  # 点击提交给站主
     hl.login_leyou()  # 输入账号,密码
     hc1.submit_order_button()  # 点击提交给站主
     hc.confirm_and_pay_button()  # 点击确认支付
     mur1 = hd.assect_pay()  ##读取支付状态文本
     self.assertEqual('订单提交成功', mur1)
コード例 #22
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)
コード例 #23
0
 def test_gxks_many_note_many_double_znzh_tj_case(self):
     """多注多倍号码,智能追号,提交"""
     ha = HomePage_leyou(self.driver)
     hb = GXKS_ChooseNumber_leyou(self.driver)
     hb1 = ElevenFiveChooseNumber_leyou(self.driver)
     hc = ConfirmLottery_leyou(self.driver)
     hc1 = EleChooseFiveConfirmLottery_leyou(self.driver)
     hl = Login_leyou(self.driver)
     hd = LessPaySucess_leyou(self.driver)
     ssc_cl = CQSSCConfirmLottery_leyou(self.driver)
     ha.open()
     ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作
     ha.Moveable_float_close()
     ha.guangxi_express_three_link()  #点击广西快三
     hb.play_jxks_add()  ##点击和值
     hb.Add_choosenumber(2)  ##点击5注
     hb1.confirm_number_button()  ###点击确认选号
     hc1.throw_times_input(13)  ##输入倍数13倍
     mur = hc1.lottery_chase_throw_text()  #读取注数
     self.assertEqual('2注1期13倍共52元', mur)
     ssc_cl.intelligently_chase_button()  # 点击智能追号
     ssc_cl.submit_button()  # 点击提交按钮
     hl.login_leyou()  # 输入账号,密码
     hc1.submit_order_button()  # 点击提交给站主
     hc.confirm_and_pay_button()  # 点击确认支付
     mur1 = hd.assect_pay()  ##读取支付状态文本
     self.assertEqual('订单提交成功', mur1)
コード例 #24
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)
コード例 #25
0
 def test_gxks_many_note_many_double_Continue_case(self):
     """多注多倍,继续选号"""
     ha = HomePage_leyou(self.driver)
     hb = GXKS_ChooseNumber_leyou(self.driver)
     hb1 = ElevenFiveChooseNumber_leyou(self.driver)
     hc = JXKS_Confirm_leyou(self.driver)
     hc1 = EleChooseFiveConfirmLottery_leyou(self.driver)
     hc2 = ConfirmLottery_leyou(self.driver)
     hl = Login_leyou(self.driver)
     hd = LessPaySucess_leyou(self.driver)
     ha.open()
     ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作
     ha.Moveable_float_close()
     ha.guangxi_express_three_link()  #点击广西快三
     hb.play_jxks_add()  ##点击和值
     hb.Add_choosenumber(5)  ##点击1注
     hb1.confirm_number_button()  ###点击确认选号
     hc.Button_add()  #点击倍数+号
     hc.Cont()  ###点击继续选号
     hb.Add_choosenumber(1)  ##点击1注
     hb1.confirm_number_button()  ###点击确认选号
     mur = hc1.lottery_chase_throw_text()  #读取注数
     self.assertEqual('6注1期2倍共24元', mur)
     hc1.submit_order_button()  # 点击提交给站主
     hl.login_leyou()  # 输入账号,密码
     hc1.submit_order_button()  # 点击提交给站主
     hc2.confirm_and_pay_button()  # 点击确认支付
     mur1 = hd.assect_pay()  ##读取支付状态文本
     self.assertEqual('订单提交成功', mur1)
コード例 #26
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()  # 点击提交订单
コード例 #27
0
 def test_onestar_choose_all_case(self):
     '''一星玩法,选择所有个号码,提交订单测试'''
     hp = HomePage_leyou(self.driver)
     hp.open()
     l = Login_leyou(self.driver)
     efcn = ElevenFiveChooseNumber_leyou(self.driver)
     efcl = EleChooseFiveConfirmLottery_leyou(self.driver)
     cl = ConfirmLottery_leyou(self.driver)
     sos = SubmitOrderSuccess_leyou(self.driver)
     hp.Moveable_float_close()  # 点击关闭浮窗
     hp.My_lottery_ticket()  # 点击我的彩票
     l.login_leyou()  # 点击登录
     hp.homepage_link()  # 点击首页
     hp.cqssc_link()  # 点击重庆时时彩链接
     ssc_cn = CQSSC_ChooseNumber_leyou(self.driver)
     ssc_cn.play_mode()  # 选择模式
     ssc_cn.one_star()  # 选择一星
     ssc_cn.gewei_all()  # 选择9个号码
     aa = efcn.total_buy_text()
     self.assertIn("10注 ", 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)
コード例 #28
0
 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()  #检查订单详情页页面元素
コード例 #29
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.sd_11_5_link()  # 点击山东11选5链接
     efcn.spread_mode_button()  # 展开玩法
     efcn.mode_choose(22, 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()  ##点击确认并支付
コード例 #30
0
 def test_bigsmall_choose_double_case(self):
     '''大小单双玩法,个位十位各选多个属性,确认选号,提交订单'''
     hp = HomePage_leyou(self.driver)
     hp.open()
     l = Login_leyou(self.driver)
     efcn = ElevenFiveChooseNumber_leyou(self.driver)
     efcl = EleChooseFiveConfirmLottery_leyou(self.driver)
     cl = ConfirmLottery_leyou(self.driver)
     sos = SubmitOrderSuccess_leyou(self.driver)
     hp.Moveable_float_close()  # 点击关闭浮窗
     hp.My_lottery_ticket()  # 点击我的彩票
     l.login_leyou()  # 点击登录
     hp.homepage_link()  # 点击首页
     hp.cqssc_link()  # 点击重庆时时彩链接
     ssc_cn = CQSSC_ChooseNumber_leyou(self.driver)
     ssc_cn.play_mode()  # 选择模式
     ssc_cn.big_little()  # 选择大小单双
     ssc_cn.ds_shiwei_all()  # 十位选择所有号码
     ssc_cn.ds_gewei_all()  # 个位选择所有号码
     aa = efcn.total_buy_text()
     self.assertIn("16注 ", 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)