def test_UnionLotto_history_recommend_many(self):
     """使用推荐号码投注(多注注多倍)"""
     ha = HomePage(self.driver)
     hb = UnionLottoChooseNumber(self.driver)
     hc = ConfirmLottery(self.driver)
     hl = Login(self.driver)
     hd=SubmitOrderSuccess(self.driver)
     he=OrderDetails(self.driver)
     ha.open()
     ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作
     ha.Moveable_float_close()
     ha.UnionLotto_link()  # 点击双色球链接
     hb.There_clock()##点击右上角。。。
     hb.History_movements()##点击历史走势
     hb.Recommended_nu()#读取推荐号码
     hb.Recommended_number()#点击使用推荐号码
     hb.Select_bule()##点击一个蓝球
     hb.Confirm_button()  # 确认选号
     mur2=hc.Select_number()##读取投注号码
     mur = hc.lottery_number_text()  # 读取注数
     self.assertEqual('2', mur)  ##断言
     hc.throw_times_input(13)  ###点击倍数输入功能
     nu = hc.throw_time_text()  ###倍数
     self.assertEqual('13', nu)
     hc.submit_order_to_station_owner_button()  # 点击提交给站主
     hl.new_user_login_tab()  # 点击新登录
     hl.login()  # 输入账号,密码
     hc.submit_order_to_station_owner_button()  # 点击提交给站主
     hc.confirm_and_pay_button()  # 点击确认支付
     ha.Moveable_float_close()
     hd.check_order_details()##点击查看订单详情
     mur1 = he.Betting_nu()  ##读取显示的投注号码
     self.assertEqual(mur2,mur1)
 def test_UnionLotto_machine_one_after(self):
     """机选一注之后,新增选号,变为复式"""
     ha = HomePage(self.driver)
     hb = UnionLottoChooseNumber(self.driver)
     hc = ConfirmLottery(self.driver)
     ha.open()
     ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作
     ha.Moveable_float_close()
     ha.UnionLotto_link()  # 点击双色球链接
     hb.machine_choose_button()  # 点击机选
     hb.machine_choose_one_button()  # 机选一注
     hb.Confirm_button()  # 确认选号
     hc.re_selection_num()
     hb.Select_bule()###添加一个蓝球
     hb.Confirm_button()  # 点击确认选号按钮
     mur = hc.lottery_number_text()  # 读取注数
     self.assertEqual('2', mur)  ##断言
     nu = hc.throw_time_text()  ###倍数
     self.assertEqual('1', nu)
     hc.submit_order_to_station_owner_button()