Example #1
0
 def test_Direct_iagree_case(self):
     """验证确认投注页面,'点击我已满18岁单选按钮"""
     ha = HomePage_leyou(self.driver)
     hb = Arrang_there_choosenumber_leyou(self.driver)
     hb1 = UnionLottoChooseNumber_leyou(self.driver)
     hb2 = ArrangeFiveChooseNumber_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.rank_three_link()  ####点击排列3
     hb.Play()  ###点击玩法
     hb.Play_Direct()  ####点击直选
     hb.there_bais(1)  # 随机选取百位去个数字
     hb.there_shis(1)  # 随机选取十位1个数字
     hb.there_ges(1)  # 随机选择个位1个数字
     hb2.Confirm_nu()  # 点击确认选号
     hd.Iagree()  # 点击我已满18岁单选按钮
     hc.submit_order_to_station_owner_button()  # 点击提交给站主
     hd.Know()  # 点击我知道了
     hd.Iagree()  # 点击我已满18岁单选按钮
     hc.submit_order_to_station_owner_button()  # 点击提交给站主
     #hl.new_user_login_tab()  # 点击新登录
     hl.login_leyou()  # 输入账号,密码
     hc.submit_order_to_station_owner_button()  # 点击提交给站主
     hc.confirm_and_pay_button()  # 点击确认支付
Example #2
0
 def test_Direct_alter_nu_case(self):
     """验证确认投注页面,点击选择号码进行修改"""
     ha = HomePage_leyou(self.driver)
     hb = Arrang_there_choosenumber_leyou(self.driver)
     hb1 = UnionLottoChooseNumber_leyou(self.driver)
     hb2 = ArrangeFiveChooseNumber_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.rank_three_link()  ####点击排列3
     hb.Play()  ###点击玩法
     hb.Play_Direct()  ####点击直选
     hb1.machine_choose_button()  ###点击机选
     hb1.machine_choose_five_button()  ##点击机选5注
     hd.Note_none(2)
     mur = hd.Test_note_nu()
     self.assertEqual('13', mur)  ####断言注数
     hc.submit_order_to_station_owner_button()  # 点击提交给站主
     #hl.new_user_login_tab()  # 点击新登录
     hl.login_leyou()  # 输入账号,密码
     hc.submit_order_to_station_owner_button()  # 点击提交给站主
     hc.confirm_and_pay_button()  # 点击确认支付
Example #3
0
 def test_Direct_all_choosenumber_case(self):
     """验证选号页面数字球功能"""
     ha = HomePage_leyou(self.driver)
     hb = Arrang_there_choosenumber_leyou(self.driver)
     hb1 = ArrangeFiveChooseNumber_leyou(self.driver)
     hc = ConfirmLottery_leyou(self.driver)
     hl = Login_leyou(self.driver)
     ha.open()
     ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作
     ha.Moveable_float_close()
     ha.rank_three_link()  ####点击排列3
     hb.Play()  ###点击玩法
     hb.Play_Direct()  ####点击直选
     hb.there_bai()  ##点击百位全部数字
     hb.there_shi()  ##点击十位全部数字
     hb.there_ge()  ##点击个位全部数字
     hb.there_bai()  ##取消百位全部数字
     hb.there_shi()  ##取消十位全部数字
     hb.there_ge()  ##取消个位全部数字
     hb.there_bais(1)  #随机选取百位1个数字
     hb.there_shis(1)  #随机选取十位1个数字
     hb.there_ges(1)  #随机选择个位1个数字
     hb1.Confirm_nu()  #点击确认选号
     hc.submit_order_to_station_owner_button()  ##点击提交给站主
     #hl.new_user_login_tab()  # 点击新登录
     hl.login_leyou()  # 输入账号,密码
     hc.submit_order_to_station_owner_button()  # 点击提交给站主
     hc.confirm_and_pay_button()  # 点击确认支付
Example #4
0
 def test_Direct_Del_all_nu_case(self):
     """验证确认投注页面,点击删除选号图标功能"""
     ha = HomePage_leyou(self.driver)
     hb = Arrang_there_choosenumber_leyou(self.driver)
     hb1 = UnionLottoChooseNumber_leyou(self.driver)
     hb2 = ArrangeFiveChooseNumber_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.rank_three_link()  ####点击排列3
     hb.Play()  ###点击玩法
     hb.Play_Direct()  ####点击直选
     hb1.machine_choose_button()  ###点击机选
     hb1.machine_choose_ten_button()  ##点击机选10注
     hc.delete_all_num_button()  ###点击清除所有选号
     hc.cancel_delete_button()  # 点击取消
     hc.delete_all_num_button()
     hc.confirm_delete_button()  # 点击确定
     hb1.machine_choose_button()  ###点击机选
     hb1.machine_choose_one_button()  ##点击机选一注
     hb2.Confirm_nu()  # 点击确认选号
     mur = hd.Test_note_nu()
     self.assertEqual('1', mur)  ####断言注数
     hc.submit_order_to_station_owner_button()  ##点击提交给站主
     #hl.new_user_login_tab()  # 点击新登录
     hl.login_leyou()  # 输入账号,密码
     hc.submit_order_to_station_owner_button()  # 点击提交给站主
     hc.confirm_and_pay_button()  # 点击确认支付
Example #5
0
 def test_seven_color_Del_all_nu_ok_case(self):
     """验证确认投注页面,点击删除选号,点击确定"""
     ha = HomePage_leyou(self.driver)
     hb = Arrang_there_choosenumber_leyou(self.driver)
     hb1 = Seven_color_choosenumber_leyou(self.driver)
     hb2 = ArrangeFiveChooseNumber_leyou(self.driver)
     hc = ConfirmLottery_leyou(self.driver)
     hc1 = PaintBallChooseNumber_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_Direct()  ####点击直选
     hb.there_bais(2)  # 随机选取百位去个数字
     hb.there_shis(1)  # 随机选取十位1个数字
     hb.there_ges(1)  # 随机选择个位1个数字
     hb2.Confirm_nu()  # 点击确认选号
     hc.delete_all_num_button()  ###点击清除所有选号
     hc.confirm_delete_button()  # 点击确定
     mur = hc1.Play_fb()
     self.assertEqual('玩\n法', mur)