Example #1
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 #2
0
 def test_alter_nu_case(self):
     '''验证点击选择号码进行修改,支付流程'''
     ha = HomePage_leyou(self.driver)
     hb = Seven_color_choosenumber_leyou(self.driver)
     hb2 = ArrangeFiveChooseNumber_leyou(self.driver)
     hb1 = UnionLottoChooseNumber_leyou(self.driver)
     hc = ConfirmLottery_leyou(self.driver)
     hc1 = ArrangeFiveConfirmLottery_leyou(self.driver)
     hl = Login_leyou(self.driver)
     ha.open()
     ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作
     ha.Moveable_float_close()
     ha.colorful_star_link()  ###点击七星彩
     hb1.machine_choose_button()  #####点击机选按钮
     hb1.machine_choose_five_button()  ####点击机选5注
     hc1.Note_none(2)  ##选择2注进行修改
     mur = hc1.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()  # 点击确认支付