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() ##点击确认并支付
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() # 点击确认支付
def test_dantuo_option4_choose_2_3_case(self): '''山东11选5胆拖玩法,任选四玩法,3个胆码,2个拖码流程测试''' hp = HomePage_leyou(self.driver) hp.open() ulcn = UnionLottoChooseNumber_leyou(self.driver) ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作 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, 18) # 选择山东11选5胆拖模式任选四玩法 efcn.dantuo_choose_num(3, 2) # 选取3个胆码2个拖码 total = efcn.total_buy_text() # 获取注数文本 self.assertIn("2", total) # 检查2注 efcn.confirm_number_button() # 点击确认选号
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() # 点击确认选号
def test_dantuo_front3_choose_1_3_case(self): '''山东11选5胆拖玩法,前三组选玩法,1个胆码,3个拖码流程测试''' hp = HomePage_leyou(self.driver) hp.open() ulcn = UnionLottoChooseNumber_leyou(self.driver) ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作 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, 23) #选择山东11选5胆拖模式前三组选玩法 sleep(2) efcn.dantuo_choose_num(1, 3) #选取1个胆码3个拖码 total = efcn.total_buy_text() # 获取注数文本 self.assertIn("3", total) # 检查3注 efcn.confirm_number_button() #点击确认选号