def test_seven_color_Del_all_nu_case(self): """验证确认投注页面,点击删除选号图标功能""" ha = HomePage_leyou(self.driver) hb = Seven_color_choosenumber_leyou(self.driver) hb2 = There_D_choosenumber_leyou(self.driver) hb1 = ArrangeFiveChooseNumber_leyou(self.driver) hc = ConfirmLottery_leyou(self.driver) hc1 = ArrangeFiveConfirmLottery_leyou(self.driver) hl = Login_leyou(self.driver) hd = LessPaySucess_leyou(self.driver) ha.open() ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作 ha.Moveable_float_close() ha.colorful_star_link() ###点击七星彩 hb.Seven_nuos(1) # 在一位随机点击1个数字 hb.Seven_nuts(2) # 在二位随机点击2个数字 hb.Seven_nuths(1) # 在三位随机点击1个数字 hb.Seven_nufs(1) ##在四位随机点击1个数字 hb.Seven_nufis(1) # 在五位随机点击1个数字 hb.Seven_nuss(1) # 在六位随机点击1个数字 hb.Seven_nuses(1) # 在七位随机点击1个数字 hb1.Confirm_nu() # 点击确认选号按钮 hc.delete_all_num_button() ###点击清除所有选号 mur = hb2.Clear() self.assertEqual('清空', mur)
def test_Direct_add_Del_all_nu_case(self): """验证确认投注页面,点击删除选号图标功能""" ha = HomePage_leyou(self.driver) hb = UnionLottoChooseNumber_leyou(self.driver) hc = ConfirmLottery_leyou(self.driver) hc1 = PaintBallChooseNumber_leyou(self.driver) hd = PaintBallConfirm_leyou(self.driver) hd1 = There_D_choosenumber_leyou(self.driver) ha.open() ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作 ha.Moveable_float_close() ha.UnionLotto_link() # 点击双色球链接 hb.u_red_label6() # 任意选择6个红球 hb.u_bule_label1() # 任意选择1个蓝球 hb.Confirm_button() # 点击确认选号按钮 hc.delete_all_num_button() ###点击清除所有选号 mur = hd1.Clear() self.assertEqual('清空', mur)
def test_seven_color_Del_all_nu_case(self): """验证确认投注页面,点击删除选号图标功能""" ha = HomePage_leyou(self.driver) hb = PaintBallChooseNumber_leyou(self.driver) hb1 = HaobcChooseNumber_leyou(self.driver) hc = ConfirmLottery_leyou(self.driver) hb2 = There_D_choosenumber_leyou(self.driver) ha.open() ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作 ha.Moveable_float_close() ha.haobc_link() # 点击竞彩蓝球 hb.Play_f() # 选择玩法 hb.Play_mix() ###点击混合投注 aa = hb1.Basketball_mix_nus_X(2) # 选择比赛 if aa == 2: hb.confirm_match() ###点击已选N场比赛 hc.delete_all_num_button() ###点击清除所有选号 mur = hb2.Clear() self.assertEqual('清空', mur)
def test_group_six_add_Del_all_nu_case(self): """验证确认投注页面,点击删除选号图标功能""" ha = HomePage_leyou(self.driver) hb = There_D_choosenumber_leyou(self.driver) hb1 = ArrangeFiveChooseNumber_leyou(self.driver) hb2 = UnionLottoChooseNumber_leyou(self.driver) hc = ConfirmLottery_leyou(self.driver) hd = ArrangeFiveConfirmLottery_leyou(self.driver) hl = Login_leyou(self.driver) ha.open() ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作 ha.Moveable_float_close() ha.fucai_3D_link() ###点击3D hb.Play_d() ###点击玩法 hb.Play_group_six_add_d() ##点击组六和值 hb2.machine_choose_button() ###点击机选 hb1.Confirm_nu() # 点击确认选号 hc.delete_all_num_button() ###点击清除所有选号 mur=hb.Clear() self.assertEqual('清空',mur)
def test_seven_color_Del_all_nu_case(self): """验证确认投注页面,点击删除选号图标功能""" ha = HomePage_leyou(self.driver) hb = Arrang_there_choosenumber_leyou(self.driver) hb1 = There_D_choosenumber_leyou(self.driver) hb2 = ArrangeFiveChooseNumber_leyou(self.driver) hc = ConfirmLottery_leyou(self.driver) hc1 = ArrangeFiveConfirmLottery_leyou(self.driver) hl = Login_leyou(self.driver) hd = LessPaySucess_leyou(self.driver) ha.open() ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作 ha.Moveable_float_close() ha.rank_three_link() ####点击排列3 hb.Play() ###点击玩法 hb.Play_Group_six() ####点击组六 hb.group_sixs(3) hb2.Confirm_nu() # 点击确认选号 hc.delete_all_num_button() ###点击清除所有选号 mur = hb1.Clear() self.assertEqual('清空', mur)
def test_seven_color_Del_all_nu_case(self): """验证确认投注页面,点击删除选号图标功能""" ha = HomePage_leyou(self.driver) hb = Seven_color_choosenumber_leyou(self.driver) hb2 = There_D_choosenumber_leyou(self.driver) hb1 = ArrangeFiveChooseNumber_leyou(self.driver) hc = ConfirmLottery_leyou(self.driver) hc1 = ArrangeFiveConfirmLottery_leyou(self.driver) hl = Login_leyou(self.driver) hd = LessPaySucess_leyou(self.driver) ha.open() ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作 ha.Moveable_float_close() ha.rank_five_link() ###点击排列5 hb1.Afive_nuws(1) # 随机选择1个万位号码 hb1.Afive_nuqs(1) # 随机选择1个千位号码 hb1.Afive_nubs(1) # 随机选择1个百位号码 hb1.Afive_down() # 鼠标向下 hb1.Afive_nuss(1) # 随机选择1个十位号码 hb1.Afive_nugs(1) # 随机选择1个个位号码 hb1.Confirm_nu() # 点击确认选号按钮 hc.delete_all_num_button() ###点击清除所有选号 mur=hb2.Clear() self.assertEqual('清空',mur)