def test_Play_mix_Btn_hundred(self): """验证100倍按钮功能,支付流程""" 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) hc2 = SingleFootConfirmLottery_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(2) ###随机点击2场比赛 if aa > 0: hb.confirm_match() ###点击已选N场比赛 hc1.Times_input_click() #####点击倍数输入框 hc1.Times_number(100) ####点击100倍 mul = hc2.Times_display_pbs() ###获取倍数 self.assertIn('100倍', mul) 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_bqc_Btn_add(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) hc2 = SingleFootConfirmLottery_lelun(self.driver) hl = Login_lelun(self.driver) ha.open() ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作 ha.Moveable_float_close() ha.single_foot_link() ###点击竞足单关 hb.Play_f() ####点击玩法 hb.Play_bqc() ###点击半全场 aa = hb1.Paintball_single_bqc_nus_X(4) ###随机点击2场比赛 if aa > 0: hb.confirm_match() ###点击已选N场比赛 hc1.Times_input(3) #####修改倍数为3 hc1.Btn_add() ####点击倍数+ mul = hc2.Times_display_pbs() ###获取倍数 self.assertIn('4倍', mul) 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() # 点击确认支付