def test_Play_zjq_Pf_del_icon(self): """验证删除选择的全部赛事图标,支付流程""" ha = HomePage_leyou(self.driver) hb = PaintBallChooseNumber_leyou(self.driver) hb1 = SingleFootChooseNumber_leyou(self.driver) hc = ConfirmLottery_leyou(self.driver) hc1 = PaintBallConfirm_leyou(self.driver) hl = Login_leyou(self.driver) ha.open() ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作 ha.Moveable_float_close() ha.single_foot_link() ###点击竞彩足球 hb.Play_f() ####点击玩法 hb.Play_zq() ###点击总进球 aa = hb1.Paintball_single_zjq_nus_X(4) ###随机点击4场比赛 if aa > 0: hb.confirm_match() ###点击已选N场比赛 hc1.Pf_del_icon() hc.confirm_delete_button() hb1.Paintball_single_zjq_nus_X(4) mul = hb.Text_confirm_loc() self.assertEqual('已选%d场比赛' % aa, mul) hb.confirm_match() ###点击已选N场比赛 hc.submit_order_to_station_owner_button() ####点击提交给站主 # hl.new_user_login_tab() # 点击新登录 hl.login_leyou() # 输入账号,密码 hc.submit_order_to_station_owner_button() # 点击提交给站主 hc.confirm_and_pay_button() # 点击确认支付
def test_delete_all_event_case(self): """验证删除选择的全部赛事图标,流程测试""" hp = HomePage_leyou(self.driver) pbcn = PaintBallChooseNumber_leyou(self.driver) sfcn = SingleFootChooseNumber_leyou(self.driver) sfcl = SingleFootConfirmLottery_leyou(self.driver) cl = ConfirmLottery_leyou(self.driver) pbc = PaintBallConfirm_leyou(self.driver) hl = Login_leyou(self.driver) hp.open() ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作 hp.Moveable_float_close() hp.single_foot_link() ##点击竞彩足球 pbcn.Play_f() ###点击玩法 pbcn.Play_rqspf() ##点击让球胜平负 aa = sfcn.jzdg_rqspf_choose(2) ###随机点击2场比赛 if aa > 0: pbcn.confirm_match() ###点击确认赛事 pbc.Pf_del_icon() # 点击删除图标 cl.confirm_delete_button() # 点击确认删除按钮 sfcn.jzdg_rqspf_choose(1) # 选择1场比赛 pbcn.confirm_match() ###点击确认赛事 text1 = sfcl.lottery_times_text() # 获取投注倍数文本 self.assertIn("1注5倍 ", text1) if aa == 0: text = sfcn.Play_dgp_text() self.assertIn("单关配", text)
def test_seven_color_Del_all_nu_ok_case(self): """验证确认投注页面,点击删除选号,点击确定""" ha = HomePage_leyou(self.driver) hb = RX9C_choosenumber_leyou(self.driver) hc = ConfirmLottery_leyou(self.driver) hc1 = PaintBallConfirm_leyou(self.driver) hc2 = PaintBallChooseNumber_leyou(self.driver) ha.open() ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作 ha.Moveable_float_close() ha.victory_defeat_14_link() # 点击胜负14场 a = hb.Games_nus(14, 1) ###点击9展示的赛事结果 if a == 1: hb.Confirm_pick() ###点击确认选号 hc1.Pf_del_icon() ###点击清除所有选号 mur = hc2.Play_fb() self.assertEqual('期\n号', mur)
def test_delete_all_event_case(self): """验证删除选择的全部赛事图标,流程测试""" hp = HomePage_leyou(self.driver) pbcn = PaintBallChooseNumber_leyou(self.driver) cl = ConfirmLottery_leyou(self.driver) pbc = PaintBallConfirm_leyou(self.driver) hl = Login_leyou(self.driver) hp.open() ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作 hp.Moveable_float_close() hp.paintball_link() ##点击竞彩足球 pbcn.Play_f() ###点击玩法 pbcn.Play_rqspf() ##点击让球胜平负 aa = pbcn.rqspf_choose(2) ###随机点击2场比赛 if aa > 0: pbcn.confirm_match() ###点击确认赛事 pbc.Pf_del_icon() #点击删除图标 cl.confirm_delete_button() #点击确认删除按钮 pbcn.rqspf_choose(4) #选择4场比赛 pbcn.confirm_match() ###点击确认赛事 text = pbc.Pf_pass_text() # 获取过关方式文本 self.assertIn("4串1", text)
def test_single_basketball_dxf_delete_all_event_case(self): """验证删除选择的全部赛事图标,流程测试""" hp = HomePage_leyou(self.driver) hcn = HaobcChooseNumber_leyou(self.driver) sbcn = SingleBasketballChooseNumber_leyou(self.driver) cl = ConfirmLottery_leyou(self.driver) pbc = PaintBallConfirm_leyou(self.driver) hl = Login_leyou(self.driver) hp.open() ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作 hp.Moveable_float_close() hp.single_basketball_link() ##点击竞彩足球 hcn.Play_f() ###点击玩法 hcn.Play_dxf() ##点击大小分 aa = sbcn.jldg_sf_choose(2) ###随机点击2场比赛 if aa > 0: hcn.confirm_match() ###点击确认赛事 pbc.Pf_del_icon() #点击删除图标 cl.confirm_delete_button() #点击确认删除按钮 sbcn.jldg_sf_choose(4) #选择4场比赛 hcn.confirm_match() ###点击确认赛事 text = pbc.Pf_pass_text() # 获取过关方式文本 self.assertIn("4串1", text)
def test_Play_dgp_Pf_del_icon(self): """验证删除选择的全部赛事图标,支付流程""" ha = HomePage_leyou(self.driver) hb = PaintBallChooseNumber_leyou(self.driver) hb1 = SingleFootChooseNumber_leyou(self.driver) hc = ConfirmLottery_leyou(self.driver) hc1 = SingleFootConfirmLottery_leyou(self.driver) hc2 = PaintBallConfirm_leyou(self.driver) hl = Login_leyou(self.driver) ha.open() ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作 ha.Moveable_float_close() ha.single_foot_link() ###点击竞足单关 hb.Play_f() ####点击玩法 hb1.Play_dgp() ###点击单关配 sleep(1) hb1.Dgp_tan() ##点击弹框 aa = hb1.Paintball_single_dgp_nus_X(1) ###随机点击1场比赛 if aa > 0: hb.confirm_match() ###点击已选N场比赛 hc2.down_bf() hc2.Pf_del_icon() ##点击删除图标 hc.confirm_delete_button() hb.top_more() hb1.Paintball_single_dgp_nus_X(1) mul = hb.Text_confirm_loc() self.assertEqual('已选%d场比赛' % aa, mul) hb.confirm_match() ###点击已选N场比赛 hc.submit_order_to_station_owner_button() ####点击提交给站主 hl.login_leyou() # 输入账号,密码 hc.submit_order_to_station_owner_button() # 点击提交给站主 hb1.Know_dgp() ##点击我知道了 hc2.Times_input_click() #####点击倍数输入框 hc2.Times_number(10) ####点击10倍 hc.submit_order_to_station_owner_button() ####点击提交给站主 # hl.new_user_login_tab() # 点击新登录 hc.confirm_and_pay_button() # 点击确认支付