def test_Direct_add_many_note_many_double_Coun_nu_case(self): """验证多注多倍号码,点击继续选号按钮功能""" 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_there_d() ####点击组三 hb.group_theres_d(2, 2) hb1.Confirm_nu() # 点击确认选号 hd.Multiple_input(10) ###点击倍数输入功能 hd.Coun_nu() #点击继续选号 hb.group_theres_d(2, 2) hb1.Confirm_nu() # 点击确认选号 mur = hd.Test_note_nu() self.assertEqual('24', mur) ####断言注数 mur = hd.Test_multiple_show() # 读取倍数 self.assertEqual('10', mur) ##断言 hc.submit_order_to_station_owner_button() ##点击提交给站主
def test_group_there_clear_number_case(self): """验证选号页面,点击清除选号按钮功能""" 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_there_d() ####点击组三 hb.group_theres_d(2, 2) hb2.clear_number() # 点击清除选号页面 hb1.Confirm_nu() # 点击确认选号 hb1.Confirm_nu() # 点击确认选号 mur = hd.Test_note_nu() self.assertEqual('2', mur) ####断言注数 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_Direct_add_a_note_Del_none_case(self): """验证确认投注页面,点击X图标功能""" 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_there_d() ####点击组三 hb.group_theres_d(2, 2) hb1.Confirm_nu() # 点击确认选号 hd.Del_none(1) ######删除1注 mur = hd.Test_note_nu() self.assertEqual('11', mur) ####断言注数