def test_Play_dgp_emptying(self): """验证选号页面清空按钮功能,支付流程""" ha = HomePage_lexiu(self.driver) hb = PaintBallChooseNumber_lexiu(self.driver) hb1 = SingleFootChooseNumber_lexiu(self.driver) hc = ConfirmLottery_lexiu(self.driver) hc1 = SingleFootConfirmLottery_lexiu(self.driver) hc2 = PaintBallConfirm_lexiu(self.driver) hl = Login_lexiu(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: hb1.Emptying_pbs() ###点击清空 hb.confirm_match() ###点击已选N场比赛 hb1.Paintball_single_dgp_nus_X(1) ###随机点击1场比赛 hb.confirm_match() ###点击已选N场比赛 hc.submit_order_to_station_owner_button() ####点击提交给站主 hl.login_lexiu() # 输入账号,密码 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_Play_dgp_Pf_del_icon(self): """验证删除选择的全部赛事图标,支付流程""" ha = HomePage_lexiu(self.driver) hb = PaintBallChooseNumber_lexiu(self.driver) hb1 = SingleFootChooseNumber_lexiu(self.driver) hc = ConfirmLottery_lexiu(self.driver) hc1 = SingleFootConfirmLottery_lexiu(self.driver) hc2 = PaintBallConfirm_lexiu(self.driver) hl = Login_lexiu(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_lexiu() # 输入账号,密码 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() # 点击确认支付