def test_group_there_pause_one_case(self):
     """验证选号页面,点击机选一注功能"""
     ha = HomePage_lelun(self.driver)
     hb = Arrang_there_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.rank_three_link()  ####点击排列3
     hb.Play()  ###点击玩法
     hb.Play_Group_there()  ####点击组三
     hb2.machine_choose_button()  ###点击机选
     hb2.machine_choose_one_button()  ##点击机选一注
     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()  # 点击确认支付
示例#2
0
 def test_group_there_Group_delet_case(self):
     """验证选号页面组合显示X 按钮功能"""
     ha = HomePage_lelun(self.driver)
     hb = There_D_choosenumber_lelun(self.driver)
     hb1 = ArrangeFiveChooseNumber_lelun(self.driver)
     hb2 = Arrang_there_choosenumber_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.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_lelun()  # 输入账号,密码
     hc.submit_order_to_station_owner_button()  # 点击提交给站主
     hc.confirm_and_pay_button()  # 点击确认支付
示例#3
0
 def test_Play_instruction_case(self):
     """验证玩法说明"""
     ha = HomePage_lelun(self.driver)
     hb = RX9C_choosenumber_lelun(self.driver)
     hb1=Arrang_there_choosenumber_lelun(self.driver)
     hb2 = There_D_choosenumber_lelun(self.driver)
     ha.open()
     ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作
     ha.Moveable_float_close()
     ha.optional_9_link()  # 点击任选9场
     hb2.Instruct()##点击右上角...
     hb1.Arrang_there_instruct()##点击玩法说明
     mur = hb.Rx9c_play()
     self.assertEqual('任选9场', mur)
     hb1.Arrany_there_know()
 def test_many_note_many_double_pause_five_case(self):
     """多注多倍,机选五注"""
     ha = HomePage_lelun(self.driver)
     hb = Arrang_there_choosenumber_lelun(self.driver)
     hb1 = UnionLottoChooseNumber_lelun(self.driver)
     hb2 = ArrangeFiveChooseNumber_lelun(self.driver)
     hc = ConfirmLottery_lelun(self.driver)
     hc1 = ArrangeFiveConfirmLottery_lelun(self.driver)
     hl = Login_lelun(self.driver)
     hd = LessPaySucess_lelun(self.driver)
     ha.open()
     ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作
     ha.Moveable_float_close()
     ha.rank_three_link()  ####点击排列3
     hb.Play()  ###点击玩法
     hb.Play_Group_there()  ####点击组三
     hb.group_theres(2)
     hb2.Confirm_nu()  # 点击确认选号
     mur1 = hc1.Test_note_nu()  ##读取注数
     self.assertEqual('2', mur1)
     hc1.Multiple_input(5)  ###点击倍数输入功能
     mur = hc1.Test_multiple_show()  ##读取倍数
     self.assertEqual('5', mur)
     hc1.Pause_five()  ###点击机选五注
     mur2 = hc1.Test_multiple_show()  ##读取倍数
     self.assertEqual('5', mur2)
     mur3 = hc1.Test_note_nu()  ##读取注数
     self.assertEqual('7', mur3)
     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()  # 点击确认支付
     mur4 = hd.assect_pay()  ##读取支付状态文本
     self.assertEqual('订单提交成功', mur4)
示例#5
0
 def test_a_note_del_case(self):
     """单注号码,点击X按钮"""
     ha = HomePage_lelun(self.driver)
     hb = Arrang_there_choosenumber_lelun(self.driver)
     hb1 = UnionLottoChooseNumber_lelun(self.driver)
     hb2 = ArrangeFiveChooseNumber_lelun(self.driver)
     hc = ConfirmLottery_lelun(self.driver)
     hc1 = ArrangeFiveConfirmLottery_lelun(self.driver)
     hl = Login_lelun(self.driver)
     hd = LessPaySucess_lelun(self.driver)
     ha.open()
     ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作
     ha.Moveable_float_close()
     ha.rank_three_link()  ####点击排列3
     hb.Play()  ###点击玩法
     hb.Play_Group_six()  ####点击组六
     hb.group_sixs(3)
     hb2.Confirm_nu()  # 点击确认选号
     mur1 = hc1.Test_note_nu()  ##读取注数
     self.assertEqual('1', mur1)
     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()  # 点击确认支付
     mur2 = hd.assect_pay()  ##读取支付状态文本
     self.assertEqual('订单提交成功', mur2)
示例#6
0
 def test_group_six_Screening_s_da_case(self):
     """验证选号页面筛选 大 按钮功能"""
     ha = HomePage_lelun(self.driver)
     hb=Arrang_there_choosenumber_lelun(self.driver)
     hb1=ArrangeFiveChooseNumber_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.rank_three_link()####点击排列3
     hb.Play()###点击玩法
     hb.Play_Group_six()####点击组六
     hb.Screening_s(2)###点击筛选中 大 按钮
     hb1.Confirm_nu()  # 点击确认选号
     mur = hd.Test_note_nu()
     self.assertEqual('10', 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_seven_color_Del_all_nu_cancel_case(self):
     """验证确认投注页面,点击删除选号图标功能"""
     ha = HomePage_lelun(self.driver)
     hb = Arrang_there_choosenumber_lelun(self.driver)
     hb1 = UnionLottoChooseNumber_lelun(self.driver)
     hb2 = ArrangeFiveChooseNumber_lelun(self.driver)
     hc = ConfirmLottery_lelun(self.driver)
     hc1 = ArrangeFiveConfirmLottery_lelun(self.driver)
     hl = Login_lelun(self.driver)
     hd = LessPaySucess_lelun(self.driver)
     ha.open()
     ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作
     ha.Moveable_float_close()
     ha.rank_three_link()  ####点击排列3
     hb.Play()  ###点击玩法
     hb.Play_Group_six()  ####点击组六
     hb.group_sixs(3)
     hb2.Confirm_nu()  # 点击确认选号
     hc.delete_all_num_button()  ###点击清除所有选号
     hc.cancel_delete_button()  # 点击取消
     mur = hc.confirm_num_page_text()
     self.assertEqual('提交订单给站主', mur)
 def test_arrany_there_Continue_switch_play_case(self):
     """,组三,继续选号,切换玩法为直选"""
     ha = HomePage_lelun(self.driver)
     hb = Arrang_there_choosenumber_lelun(self.driver)
     hb1 = Seven_color_choosenumber_lelun(self.driver)
     hb2 = ArrangeFiveChooseNumber_lelun(self.driver)
     hc = ConfirmLottery_lelun(self.driver)
     hc1 = ArrangeFiveConfirmLottery_lelun(self.driver)
     hl = Login_lelun(self.driver)
     hd = LessPaySucess_lelun(self.driver)
     ha.open()
     ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作
     ha.Moveable_float_close()
     ha.rank_three_link()  ####点击排列3
     hb.Play()  ###点击玩法
     hb.Play_Group_six()  ####点击组六
     hb.group_sixs(3)
     hb2.Confirm_nu()  # 点击确认选号
     hc1.Coun_nu()  ###点击继续选号
     hb.Play()  ###点击玩法
     hb.Play_Group_there()  ####点击组三
     hb.Switch_play_ok()  ##点击确定
     hb.group_theres(4)  ###组三,选择4个号码
     hb2.Confirm_nu()  # 点击确认选号
     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()  # 点击确认支付
     mur1 = hd.assect_pay()  ##读取支付状态文本
     self.assertEqual('订单提交成功', mur1)