Example #1
0
 def test_Direct_chase_ticket_fifty_case(self):
     """"点击追加50期"""
     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()  # 点击确认选号
     hc.chase_ticket_button()  ###点击追期
     hc.chase_ticket_button_fifty()  ##点击 50期
     nu = hd.Test_period_show()
     self.assertEqual('50', 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 #2
0
 def test_many_note_many_double_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)
     hc1 = ArrangeFiveConfirmLottery_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(2)  # 随机选取十位1个数字
     hb.there_ges(2)  # 随机选择个位1个数字
     hb2.Confirm_nu()  # 点击确认选号
     hc1.Multiple_input(5)  ###点击倍数输入功能
     mur = hc1.Test_multiple_show()  ##读取倍数
     self.assertEqual('5', mur)
     mur1 = hc1.Test_note_nu()  ##读取注数
     self.assertEqual('8', mur1)
     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()  # 点击确认支付
     mur2 = hd.assect_pay()  ##读取支付状态文本
     self.assertEqual('订单提交成功', mur2)
Example #3
0
 def test_Direct_Multiple_add_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()  ####点击直选
     hb.there_bais(1)  # 随机选取百位去个数字
     hb.there_shis(1)  # 随机选取十位1个数字
     hb.there_ges(1)  # 随机选择个位1个数字
     hb2.Confirm_nu()  # 点击确认选号
     hd.Multiple_add()  ##点击倍数 +号
     mur = hd.Test_multiple_show()  # 读取倍数
     self.assertEqual('2', 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 #4
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 #5
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 #6
0
 def test_arrany_there_Continue_switch_play_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 = ArrangeFiveConfirmLottery_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_Group_there()  ####点击组三
     hb.group_theres(4)  ###组三,选择4个号码
     hb2.Confirm_nu()  # 点击确认选号
     hc1.Coun_nu()  ###点击继续选号
     hb.Play()  ###点击玩法
     hb.Play_Direct()  ####点击直选
     hb.Switch_play_ok()  ##点击确定
     hb.there_bais(2)  # 随机选取百位去个数字
     hb.there_shis(1)  # 随机选取十位1个数字
     hb.there_ges(1)  # 随机选择个位1个数字
     hb2.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()  # 点击确认支付
     mur1 = hd.assect_pay()  ##读取支付状态文本
     self.assertEqual('订单提交成功', mur1)
Example #7
0
 def test_seven_color_Del_all_nu_case(self):
     """验证确认投注页面,点击删除选号图标功能"""
     ha = HomePage_leyou(self.driver)
     hb = Arrang_there_choosenumber_leyou(self.driver)
     hb1 = There_D_choosenumber_leyou(self.driver)
     hb2 = ArrangeFiveChooseNumber_leyou(self.driver)
     hc = ConfirmLottery_leyou(self.driver)
     hc1 = ArrangeFiveConfirmLottery_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()  ###点击清除所有选号
     mur = hb1.Clear()
     self.assertEqual('清空', mur)