def test_Play_mix_Add_event(self): """验证添加/编辑赛事按钮,支付流程""" ha = HomePage_lelun(self.driver) hb = PaintBallChooseNumber_lelun(self.driver) hb1 = SingleFootChooseNumber_lelun(self.driver) hc = ConfirmLottery_lelun(self.driver) hc1 = PaintBallConfirm_lelun(self.driver) hl = Login_lelun(self.driver) ha.open() ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作 ha.Moveable_float_close() ha.single_foot_link() ###点击竞彩足球 hb.Play_f() ####点击玩法 hb.Play_mix() ###点击混合玩法 aa = hb1.Paintball_single_mix_nus_X(4) ###随机点击4场比赛 if aa > 0: hb.confirm_match() ###点击已选N场比赛 hc1.Add_event() ###点击编辑/添加赛事 mul = hb.Play_fb() ###读取文本 self.assertEqual('玩\n法', mul) hb.confirm_match() ###点击已选N场比赛 hc.submit_order_to_station_owner_button() ####点击提交给站主 # hl.new_user_login_tab() # 点击新登录 hl.login_lelun() # 输入账号,密码 hc.submit_order_to_station_owner_button() # 点击提交给站主 hc.confirm_and_pay_button() # 点击确认支付
def test_Play_dgp_Add_event(self): """验证添加/编辑赛事按钮,支付流程""" ha = HomePage_lelun(self.driver) hb = PaintBallChooseNumber_lelun(self.driver) hb1 = SingleFootChooseNumber_lelun(self.driver) hc = ConfirmLottery_lelun(self.driver) hc1 = SingleFootConfirmLottery_lelun(self.driver) hc2 = PaintBallConfirm_lelun(self.driver) hl = Login_lelun(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.Add_event() ###点击编辑/添加赛事 mul = hb.Play_fb() ###读取文本 self.assertEqual('玩\n法', mul) hb.confirm_match() ###点击已选N场比赛 hc.submit_order_to_station_owner_button() ####点击提交给站主 hl.login_lelun() # 输入账号,密码 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() # 点击确认支付
def test_UnionLotto_Continue_buy(self): """验证继续投注该彩种""" ha = HomePage_lelun(self.driver) hb = UnionLottoChooseNumber_lelun(self.driver) hc = ConfirmLottery_lelun(self.driver) hc1 = PaintBallChooseNumber_lelun(self.driver) hl = Login_lelun(self.driver) hd = SubmitOrderSuccess_lelun(self.driver) hf = SubmitOrderSuccess_lelun(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() # 点击确认选号按钮 mur = hc.lottery_number_text() # 读取注数 self.assertEqual('1', mur) ##断言 nu = hc.throw_time_text() ###倍数 self.assertEqual('1', nu) hc.submit_order_to_station_owner_button() #hl.new_user_login_tab() # 点击新登录 hl.login_lelun() # 输入账号,密码 hc.submit_order_to_station_owner_button() # 点击提交给站主 hc.confirm_and_pay_button() # 点击确认支付 hd.Continue_buy() ##点击继续购买该彩种 mur1 = hc1.Play_fb() self.assertEqual('玩\n法', mur1) hb.machine_choose_button() # 点击机选 hb.machine_choose_one_button() # 机选一注 hb.Confirm_button() # 确认选号 hc.submit_order_to_station_owner_button() # 点击提交给站主 hc.confirm_and_pay_button() # 点击确认支付 text1 = hf.submit_order_success() # 获取提交订单成功文本 self.assertEqual('订单提交成功', text1)
def test_seven_color_Del_all_nu_ok_case(self): """验证确认投注页面,点击删除选号,点击确定""" ha = HomePage_lelun(self.driver) hb = RX9C_choosenumber_lelun(self.driver) hc = ConfirmLottery_lelun(self.driver) hc1 = PaintBallConfirm_lelun(self.driver) hc2 = PaintBallChooseNumber_lelun(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_UnionLotto_unitary_del_X(self): """左边X按钮,能够删除所选号码""" ha = HomePage_lelun(self.driver) hb = UnionLottoChooseNumber_lelun(self.driver) hc = ConfirmLottery_lelun(self.driver) hc1 = PaintBallChooseNumber_lelun(self.driver) hd = PaintBallConfirm_lelun(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.Del_x() ##点击左侧X按钮 mur1 = hc1.Play_fb() self.assertEqual('玩\n法', mur1)
def test_Direct_add_Del_all_nu_ok_case(self): """验证确认投注页面,点击删除选号图标功能""" ha = HomePage_lelun(self.driver) hb = UnionLottoChooseNumber_lelun(self.driver) hc = ConfirmLottery_lelun(self.driver) hc1 = PaintBallChooseNumber_lelun(self.driver) hd = PaintBallConfirm_lelun(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() ###点击清除所有选号 hc.confirm_delete_button() # 点击确定 mur = hc1.Play_fb() self.assertEqual('玩\n法', mur)
def test_seven_color_Del_all_nu_ok_case(self): """验证确认投注页面,点击删除选号,点击确定""" ha = HomePage_lelun(self.driver) hb = PaintBallChooseNumber_lelun(self.driver) hb1 = HaobcChooseNumber_lelun(self.driver) hc = ConfirmLottery_lelun(self.driver) hb2 = There_D_choosenumber_lelun(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() ###点击清除所有选号 hc.confirm_delete_button() # 点击确定 mur = hb.Play_fb() self.assertEqual('玩\n法', mur)
def test_gxks_history_case(self): """历史走势""" ha = HomePage_lelun(self.driver) hb = GXKS_ChooseNumber_lelun(self.driver) hb1 = UnionLottoChooseNumber_lelun(self.driver) hc1 = PaintBallChooseNumber_lelun(self.driver) ha.open() ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作 ha.Moveable_float_close() ha.guangxi_express_three_link() #点击广西快三 hb1.There_clock() ##点击。。。 hb.History_movements() ##点击历史走势 mur = hb.Date_nu() ##读取最后一条数据 if mur == '': self.assertEqual('a', mur) else: print('数据显示正常') hb.Ret() ##点击返回按钮 mur1 = hc1.Play_fb() self.assertEqual('玩\n法', mur1)
def test_group_six_Del_all_nu_ok_case(self): """验证确认投注页面,点击删除选号图标功能""" hc1 = PaintBallChooseNumber_lelun(self.driver) ha = HomePage_lelun(self.driver) hb = There_D_choosenumber_lelun(self.driver) hb1 = ArrangeFiveChooseNumber_lelun(self.driver) hb2 = UnionLottoChooseNumber_lelun(self.driver) hc = ConfirmLottery_lelun(self.driver) hd = ArrangeFiveConfirmLottery_lelun(self.driver) hl = Login_lelun(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() ###点击清除所有选号 hc.confirm_delete_button() # 点击确定 mur = hc1.Play_fb() self.assertEqual('玩\n法', mur)
def test_seven_color_Del_all_nu_ok_case(self): """验证确认投注页面,点击删除选号,点击确定""" ha = HomePage_lelun(self.driver) hb = Arrang_there_choosenumber_lelun(self.driver) hb1 = Seven_color_choosenumber_lelun(self.driver) hb2 = ArrangeFiveChooseNumber_lelun(self.driver) hc = ConfirmLottery_lelun(self.driver) hc1 = PaintBallChooseNumber_lelun(self.driver) hl = Login_lelun(self.driver) hd = LessPaySucess_lelun(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() ###点击清除所有选号 hc.confirm_delete_button() # 点击确定 mur = hc1.Play_fb() self.assertEqual('玩\n法', mur)