def test_threestar_choose_one_continue_buy_caizhong_case(self):
     '''验证购买成功页【点击继续投注该彩种】,页面跳转至选号页面'''
     hp = HomePage_lexiu(self.driver)
     hp.open()
     l = Login_lexiu(self.driver)
     efcn = ElevenFiveChooseNumber_lexiu(self.driver)
     efcl = EleChooseFiveConfirmLottery_lexiu(self.driver)
     cl = ConfirmLottery_lexiu(self.driver)
     sos = SubmitOrderSuccess_lexiu(self.driver)
     od = OrderDetails_lexiu(self.driver)
     hp.Moveable_float_close()  #点击关闭浮窗
     hp.My_lottery_ticket()  #点击我的彩票
     l.login_lexiu()  #点击登录
     hp.homepage_link()  #点击首页
     hp.Moveable_float_close()  # 点击关闭浮窗
     hp.cqssc_link()  #点击重庆时时彩链接
     ssc_cn = CQSSC_ChooseNumber_lexiu(self.driver)
     ssc_cn.play_mode()  #选择模式
     ssc_cn.three_star()  #选择三星
     num1 = ssc_cn.three_star_select(1, 1, 1)
     efcn.confirm_number_button()  # 点击确认选号
     efcl.submit_order_button()  # 点击提交订单给站主
     cl.confirm_and_pay_button()  # 点击确认并支付
     hp.Moveable_float_close()  # 如果出现浮层弹框,关闭
     sos.Continue_buy()  #点击继续投注该彩种
     cc = efcn.total_buy_text()
     self.assertIn("请每位至少选择1个号码", cc, '页面未跳转至选号页面')
 def test_threestar_choose_one_case(self):
     '''三星直选玩法,个位十位百位各选一个号码并提交订单流程测试'''
     hp = HomePage_lexiu(self.driver)
     hp.open()
     l = Login_lexiu(self.driver)
     efcn = ElevenFiveChooseNumber_lexiu(self.driver)
     efcl = EleChooseFiveConfirmLottery_lexiu(self.driver)
     cl = ConfirmLottery_lexiu(self.driver)
     sos = SubmitOrderSuccess_lexiu(self.driver)
     od = OrderDetails_lexiu(self.driver)
     hp.Moveable_float_close()  #点击关闭浮窗
     hp.My_lottery_ticket()  #点击我的彩票
     l.login_lexiu()  #点击登录
     hp.homepage_link()  #点击首页
     hp.Moveable_float_close()  # 点击关闭浮窗
     hp.cqssc_link()  #点击重庆时时彩链接
     ssc_cn = CQSSC_ChooseNumber_lexiu(self.driver)
     ssc_cn.play_mode()  #选择模式
     ssc_cn.three_star()  #选择三星
     num1 = ssc_cn.three_star_select(1, 1, 1)  #百十个位各选一个数字
     aa = efcn.total_buy_text()
     self.assertIn("1注 ", aa)
     efcn.confirm_number_button()  # 点击确认选号
     efcl.submit_order_button()  # 点击提交订单给站主
     cl.confirm_and_pay_button()  # 点击确认并支付
     hp.Moveable_float_close()  # 如果出现浮层弹框,关闭
     text = sos.submit_order_success()  # 获取页面“订单提交成功”文本
     self.assertEqual("订单提交成功", text)
     hp.Moveable_float_close()  # 如果出现浮层弹框,关闭
     trade_name = sos.trade_name_text()  # 获取页面商品名称文本
     self.assertIn("商品名称:乐秀赢球-重庆时时彩", trade_name)
     sos.check_order_details()  #点击查看订单详情
     num2 = od.bet_number()  #获取页面投注号码
     self.assertIn(num1, num2)