Example #1
0
 def test_Direct_a_note_Del_none_case(self):
     """验证确认投注页面,点击X图标功能"""
     ha = HomePage_leyou(self.driver)
     hb = There_D_choosenumber_leyou(self.driver)
     hb1 = ArrangeFiveChooseNumber_leyou(self.driver)
     hb2 = UnionLottoChooseNumber_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.fucai_3D_link()  ###点击3D
     hb.Play_d()  ###点击玩法
     hb.Play_direct_d()  ###点击直选
     hb.there_D_bais(1, 0)  ##随机取百位1个数字
     hb.there_D_shis(0, 1)  ##随机取十位1个数字
     hb.there_D_ges(0, 1)  ##随机取个位1个数字
     hb1.Confirm_nu()  # 点击确认选号
     hd.Del_none(1)  ######删除1注
     hb.there_D_bais(1, 0)  ##随机取百位1个数字
     hb.there_D_shis(0, 1)  ##随机取十位1个数字
     hb.there_D_ges(0, 1)  ##随机取个位1个数字
     hb1.Confirm_nu()  # 点击确认选号
     mur = hd.Test_note_nu()
     self.assertEqual('1', mur)  ####断言注数
Example #2
0
 def test_Direct_chase_ticket_fifty_case(self):
     """"点击追加50期"""
     ha = HomePage_leyou(self.driver)
     hb = There_D_choosenumber_leyou(self.driver)
     hb1 = ArrangeFiveChooseNumber_leyou(self.driver)
     hb2 = UnionLottoChooseNumber_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.fucai_3D_link()  ###点击3D
     hb.Play_d()  ###点击玩法
     hb.Play_direct_d()  ###点击直选
     hb.there_D_bais(1, 0)  # 随机选取百位去个数字
     hb.there_D_shis(0, 1)  # 随机选取十位1个数字
     hb.there_D_ges(0, 1)  # 随机选择个位1个数字
     hb1.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 #3
0
 def test_Direct_many_note_many_double_case(self):
     """手动选择多注多倍号码"""
     ha = HomePage_leyou(self.driver)
     hb = There_D_choosenumber_leyou(self.driver)
     hb1 = ArrangeFiveChooseNumber_leyou(self.driver)
     hb2 = UnionLottoChooseNumber_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.fucai_3D_link()  ###点击3D
     hb.Play_d()  ###点击玩法
     hb.Play_direct_d()  ###点击直选
     hb.there_D_bais(1, 3)  # 随机选取百位4个数字
     hb.there_D_shis(0, 1)  # 随机选取十位1个数字
     hb.there_D_ges(1, 1)  # 随机选择个位2个数字
     hb1.Confirm_nu()  # 点击确认选号
     hd.Multiple_input(10)  ###点击倍数输入功能
     mur = hd.Test_multiple_show()  # 读取倍数
     self.assertEqual('10', mur)  ##断言
     nu = hd.Test_note_nu()
     self.assertEqual('8', nu)
     hc.submit_order_to_station_owner_button()  # 点击提交给站主
Example #4
0
 def test_Direct_Multiple_add_case(self):
     """验证确认投注页面,点击倍数+"""
     ha = HomePage_leyou(self.driver)
     hb = There_D_choosenumber_leyou(self.driver)
     hb1 = ArrangeFiveChooseNumber_leyou(self.driver)
     hb2 = UnionLottoChooseNumber_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.fucai_3D_link()  ###点击3D
     hb.Play_d()  ###点击玩法
     hb.Play_direct_d()  ###点击直选
     hb.there_D_bais(1, 0)  # 随机选取百位去个数字
     hb.there_D_shis(0, 1)  # 随机选取十位1个数字
     hb.there_D_ges(0, 1)  # 随机选择个位1个数字
     hb1.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 #5
0
 def test_Direct_iagree_case(self):
     """验证确认投注页面,'点击我已满18岁单选按钮"""
     ha = HomePage_leyou(self.driver)
     hb = There_D_choosenumber_leyou(self.driver)
     hb1 = ArrangeFiveChooseNumber_leyou(self.driver)
     hb2 = UnionLottoChooseNumber_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.fucai_3D_link()  ###点击3D
     hb.Play_d()  ###点击玩法
     hb.Play_direct_d()  ###点击直选
     hb.there_D_bais(1, 0)  # 随机选取百位去个数字
     hb.there_D_shis(0, 1)  # 随机选取十位1个数字
     hb.there_D_ges(0, 1)  # 随机选择个位1个数字
     hb1.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 #6
0
 def test_Direct_alter_nu_case(self):
     """验证确认投注页面,点击选择号码进行修改"""
     ha = HomePage_leyou(self.driver)
     hb = There_D_choosenumber_leyou(self.driver)
     hb1 = ArrangeFiveChooseNumber_leyou(self.driver)
     hb2 = UnionLottoChooseNumber_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.fucai_3D_link()  ###点击3D
     hb.Play_d()  ###点击玩法
     hb.Play_direct_d()  ###点击直选
     hb2.machine_choose_button()  ###点击机选
     hb2.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 #7
0
 def test_group_there_Group_delet_case(self):
     """验证选号页面组合显示X 按钮功能"""
     ha = HomePage_leyou(self.driver)
     hb = There_D_choosenumber_leyou(self.driver)
     hb1 = ArrangeFiveChooseNumber_leyou(self.driver)
     hb2 = Arrang_there_choosenumber_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.fucai_3D_link()  ###点击3D
     hb.Play_d()  ###点击玩法
     hb.Play_group_there_d()  ####点击组三
     hb.Screening_d(4)  ###点击筛选中 全 按钮
     hb2.Group_delet()
     hb1.Confirm_nu()  # 点击确认选号
     mur = hd.Test_note_nu()
     self.assertEqual('89', 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()  # 点击确认支付
 def test_group_six_clear_number_case(self):
     """验证选号页面,点击清除选号按钮功能"""
     ha = HomePage_leyou(self.driver)
     hb = There_D_choosenumber_leyou(self.driver)
     hb1 = ArrangeFiveChooseNumber_leyou(self.driver)
     hb2 = UnionLottoChooseNumber_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.fucai_3D_link()  ###点击3D
     hb.Play_d()  ###点击玩法
     hb.Play_group_six_d()  ####点击组六
     hb.group_theres_d(2, 2)
     hb2.clear_number()  # 点击清除选号页面
     hb1.Confirm_nu()  # 点击确认选号
     hb1.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 #9
0
 def test_Direct_all_choosenumber_case(self):
     """验证选号页面数字球功能"""
     ha = HomePage_leyou(self.driver)
     hb = There_D_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.fucai_3D_link()  ###点击3D
     hb.Play_d()  ###点击玩法
     hb.Play_direct_d()  ###点击直选
     hb.there_D_bai()  ##点击百位数字
     hb.there_D_shi()  ##点击十位数字
     hb.there_D_ge()  ##点击个位数字
     hb.there_D_bai()  ##取消百位数字
     hb.there_D_shi()  ##取消十位数字
     hb.there_D_ge()  ##取消个位数字
     hb.there_D_bais(1, 0)  ##随机取百位1个数字
     hb.there_D_shis(0, 1)  ##随机取十位1个数字
     hb.there_D_ges(0, 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 #10
0
 def test_group_six_add_all_choosenumber(self):
     """验证选号页面,数字球功能"""
     ha = HomePage_leyou(self.driver)
     hb = There_D_choosenumber_leyou(self.driver)
     hb1 = ArrangeFiveChooseNumber_leyou(self.driver)
     hb2 = UnionLottoChooseNumber_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.fucai_3D_link()  ###点击3D
     hb.Play_d()  ###点击玩法
     hb.Play_group_six_add_d()  ##点击组六和值
     hb.Group_six_add(22)  ###点击26个数字球
     hb.Group_six_add(22)  ###取消26个数字球
     nu = hb.Group_six_addA()  ###点击1个数字球
     hb1.Confirm_nu()  # 点击确认选号
     mur = hd.Test_note_nu()
     self.assertEqual(nu, mur)  ####断言注数
     hc.submit_order_to_station_owner_button()  ##点击提交给站主
     #hl.new_user_login_tab()  # 点击新登录
     hl.login_leyou()  # 输入账号,密码
     hc.submit_order_to_station_owner_button()  # 点击提交给站主
Example #11
0
 def test_group_six_add_many_note_many_double_Pause_one_case(self):
     """验证多注多倍号码,点击机选1注按钮功能"""
     ha = HomePage_leyou(self.driver)
     hb = There_D_choosenumber_leyou(self.driver)
     hb1 = ArrangeFiveChooseNumber_leyou(self.driver)
     hb2 = UnionLottoChooseNumber_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.fucai_3D_link()  ###点击3D
     hb.Play_d()  ###点击玩法
     hb.Play_group_six_add_d()  ##点击组六和值
     mur1 = hb.Group_six_addA()
     hb1.Confirm_nu()  # 点击确认选号
     hd.Multiple_input(10)  ###点击倍数输入功能
     mur2 = hb.Pause_d_six()  # 点击机选
     mur = hd.Test_note_nu()
     mur3 = str(int(mur1) + int(mur2))
     self.assertEqual(mur3, mur)  ####断言注数
     mur = hd.Test_multiple_show()  # 读取倍数
     self.assertEqual('10', mur)  ##断言
     hc.submit_order_to_station_owner_button()  ##点击提交给站主
 def test_there_D_play_case(self):
     """验证3D投注选号页面,切换玩法"""
     ha = HomePage_leyou(self.driver)
     hb = There_D_choosenumber_leyou(self.driver)
     ha.open()
     ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作
     ha.Moveable_float_close()
     ha.fucai_3D_link()  ###点击3D
     hb.Play_d()  ###点击玩法
     hb.Play_direct_d()  ##点击直选
     mur = hb.Show_play()
     self.assertEqual('直选', mur)
     hb.Play_d()  ###点击玩法
     hb.Play_group_there_d()  #####点击组三
     mur = hb.Show_play()
     self.assertEqual('组三', mur)
     hb.Play_d()  ###点击玩法
     hb.Play_group_six_d()  ####点击组六
     mur = hb.Show_play()
     self.assertEqual('组六', mur)
     hb.Play_d()  ###点击玩法
     hb.Play_group_direct_add_d()  ###点击直选和值
     mur = hb.Show_play()
     self.assertEqual('直选和值', mur)
     hb.Play_d()  ###点击玩法
     hb.Play_group_there_add_d()  #####点击组三和值
     mur = hb.Show_play()
     self.assertEqual('组三和值', mur)
     hb.Play_d()  ###点击玩法
     hb.Play_group_six_add_d()  ##点击组六和值
     mur = hb.Show_play()
     self.assertEqual('组六和值', mur)
 def test_there_D_history_recommend(self):
     """验证历史走势,使用推荐号码"""
     ha = HomePage_leyou(self.driver)
     hb = There_D_choosenumber_leyou(self.driver)
     hb1 = ArrangeFiveChooseNumber_leyou(self.driver)
     hb2 = UnionLottoChooseNumber_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.fucai_3D_link()  ###点击3D
     hb.Instruct()  ##点击右上角...
     hb.History()  ###点击历史投注
     mur = hb.Recommend()
     hb.Use_recommend()  ###点击使用推荐号码
     hb1.Confirm_nu()  # 点击确认选号
     mur1 = hb.Number()
     self.assertIn(mur, 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()  # 点击确认支付
 def test_group_six_many_note_many_double_Coun_nu_case(self):
     """验证多注多倍号码,点击继续选号按钮功能"""
     ha = HomePage_leyou(self.driver)
     hb = There_D_choosenumber_leyou(self.driver)
     hb1 = ArrangeFiveChooseNumber_leyou(self.driver)
     hb2 = UnionLottoChooseNumber_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.fucai_3D_link()  ###点击3D
     hb.Play_d()  ###点击玩法
     hb.Play_group_six_d()  ####点击组六
     hb.group_theres_d(2, 3)
     hb1.Confirm_nu()  # 点击确认选号
     hd.Multiple_input(10)  ###点击倍数输入功能
     hd.Coun_nu()  #点击继续选号
     hb.group_theres_d(2, 1)
     hb1.Confirm_nu()  # 点击确认选号
     mur = hd.Test_note_nu()
     self.assertEqual('11', mur)  ####断言注数
     mur = hd.Test_multiple_show()  # 读取倍数
     self.assertEqual('10', mur)  ##断言
     hc.submit_order_to_station_owner_button()  ##点击提交给站主
Example #15
0
 def test_Direct_Del_all_nu_ok_case(self):
     """验证确认投注页面,点击删除选号图标功能"""
     ha = HomePage_leyou(self.driver)
     hb = There_D_choosenumber_leyou(self.driver)
     hb1 = ArrangeFiveChooseNumber_leyou(self.driver)
     hb2 = UnionLottoChooseNumber_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.fucai_3D_link()  ###点击3D
     hb.Play_d()  ###点击玩法
     hb.Play_direct_d()  ###点击直选
     hb2.machine_choose_button()  ###点击机选
     hb2.machine_choose_ten_button()  ##点击机选10注
     hc.delete_all_num_button()  ###点击清除所有选号
     hc.confirm_delete_button()  # 点击确定
     hb2.machine_choose_button()  ###点击机选
     hb2.machine_choose_one_button()  ##点击机选一注
     hb1.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()  # 点击确认支付
 def test_there_D_play_instruction(self):
     """验证玩法说明"""
     ha = HomePage_leyou(self.driver)
     hb = There_D_choosenumber_leyou(self.driver)
     ha.open()
     ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作
     ha.Moveable_float_close()
     ha.fucai_3D_link()  ###点击3D
     hb.Instruct()  ##点击右上角...
     hb.Play_instruction()  ##点击玩法说明
     mur = hb.Group_there_add_play_instruction()
     self.assertEqual('组三和值', mur)
     hb.There_D_know()
 def test_there_D_history(self):
     """验证历史走势"""
     ha = HomePage_leyou(self.driver)
     hb = There_D_choosenumber_leyou(self.driver)
     ha.open()
     ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作
     ha.Moveable_float_close()
     ha.fucai_3D_link()  ###点击3D
     hb.Instruct()  ##点击右上角...
     hb.History()  ###点击历史投注
     mur = hb.Charts()
     if mur == '':
         self.assertEqual('a', mur)
     else:
         print("历史走势展示正常")
Example #18
0
 def test_group_six_add_Del_all_nu_case(self):
     """验证确认投注页面,点击删除选号图标功能"""
     ha = HomePage_leyou(self.driver)
     hb = There_D_choosenumber_leyou(self.driver)
     hb1 = ArrangeFiveChooseNumber_leyou(self.driver)
     hb2 = UnionLottoChooseNumber_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.fucai_3D_link()  ###点击3D
     hb.Play_d()  ###点击玩法
     hb.Play_group_six_add_d()  ##点击组六和值
     hb2.machine_choose_button()  ###点击机选
     hb1.Confirm_nu()  # 点击确认选号
     hc.delete_all_num_button()  ###点击清除所有选号
     mur=hb.Clear()
     self.assertEqual('清空',mur)
Example #19
0
 def test_Direct_add_a_note_Del_none_case(self):
     """验证确认投注页面,点击X图标功能"""
     ha = HomePage_leyou(self.driver)
     hb = There_D_choosenumber_leyou(self.driver)
     hb1 = ArrangeFiveChooseNumber_leyou(self.driver)
     hb2 = UnionLottoChooseNumber_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.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)  ####断言注数
Example #20
0
 def test_Direct_add_Del_all_nu_cancel_case(self):
     """验证确认投注页面,点击删除选号图标功能"""
     ha = HomePage_leyou(self.driver)
     hb = There_D_choosenumber_leyou(self.driver)
     hb1 = ArrangeFiveChooseNumber_leyou(self.driver)
     hb2 = UnionLottoChooseNumber_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.fucai_3D_link()  ###点击3D
     hb.Play_d()  ###点击玩法
     hb.Play_group_there_d()  ####点击组三
     hb2.machine_choose_button()  ###点击机选
     hb2.machine_choose_ten_button()  ##点击机选10注
     hc.delete_all_num_button()  ###点击清除所有选号
     hc.cancel_delete_button()  # 点击取消
     mur = hc.confirm_num_page_text()
     self.assertEqual('提交订单给站主', mur)
Example #21
0
 def test_group_six_add_click_too_confirm_case(self):
     """验证选号页面,点击2次确认选号按钮功能"""
     ha = HomePage_leyou(self.driver)
     hb = There_D_choosenumber_leyou(self.driver)
     hb1 = ArrangeFiveChooseNumber_leyou(self.driver)
     hb2 = UnionLottoChooseNumber_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.fucai_3D_link()  ###点击3D
     hb.Play_d()  ###点击玩法
     hb.Play_group_six_add_d()  ##点击组六和值
     hb1.Confirm_nu()  # 点击确认选号
     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()  # 点击确认支付
 def test_group_six_Del_all_nu_ok_case(self):
     """验证确认投注页面,点击删除选号图标功能"""
     hc1 = PaintBallChooseNumber_leyou(self.driver)
     ha = HomePage_leyou(self.driver)
     hb = There_D_choosenumber_leyou(self.driver)
     hb1 = ArrangeFiveChooseNumber_leyou(self.driver)
     hb2 = UnionLottoChooseNumber_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.fucai_3D_link()  ###点击3D
     hb.Play_d()  ###点击玩法
     hb.Play_group_six_d()  ####点击组六
     hb2.machine_choose_button()  ###点击机选
     hb2.machine_choose_ten_button()  ##点击机选10注
     hc.delete_all_num_button()  ###点击清除所有选号
     hc.confirm_delete_button()  # 点击确定
     mur = hc1.Play_fb()
     self.assertEqual('玩\n法', mur)