예제 #1
0
 def test_bigsmall_choose_all_cancel_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)
     hp.Moveable_float_close()  # 点击关闭浮窗
     hp.My_lottery_ticket()  # 点击我的彩票
     l.login_lexiu()  # 点击登录
     hp.homepage_link()  # 点击首页
     hp.cqssc_link()  # 点击重庆时时彩链接
     ssc_cn = CQSSC_ChooseNumber_lexiu(self.driver)
     ssc_cn.play_mode()  # 选择模式
     ssc_cn.big_little()  # 选择大小单双
     ssc_cn.ds_shiwei_all()  # 十位选择所有号码
     ssc_cn.ds_gewei_all()  # 个位选择所有号码
     aa = efcn.total_buy_text()
     self.assertIn("16注 ", aa)
     ssc_cn.ds_shiwei_all()  # 十位选择取消所有号码
     ssc_cn.ds_gewei_all()  # 个位选择取消所有号码
     aa = efcn.total_buy_text()
     self.assertIn("请至少每位选择1种属性", aa)
예제 #2
0
 def test_bigsmall_machine_choose_ten_case(self):
     '''大小单双玩法,机选10注,确认选号提交订单'''
     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)
     ulcn = UnionLottoChooseNumber_lexiu(self.driver)
     hp.Moveable_float_close()  # 点击关闭浮窗
     hp.My_lottery_ticket()  # 点击我的彩票
     l.login_lexiu()  # 点击登录
     hp.homepage_link()  # 点击首页
     hp.cqssc_link()  # 点击重庆时时彩链接
     ssc_cn = CQSSC_ChooseNumber_lexiu(self.driver)
     ssc_cn.play_mode()  # 选择模式
     ssc_cn.big_little()  # 选择大小单双玩法
     ulcn.machine_choose_button()  # 点击机选
     ulcn.machine_choose_ten_button()  # 机选10注
     bb = efcl.lottery_chase_throw_text()  # 获取注数倍数
     self.assertIn("10注1期1倍", bb)
     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)
예제 #3
0
 def test_bigsmall_choose_double_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)
     hp.Moveable_float_close()  # 点击关闭浮窗
     hp.My_lottery_ticket()  # 点击我的彩票
     l.login_lexiu()  # 点击登录
     hp.homepage_link()  # 点击首页
     hp.cqssc_link()  # 点击重庆时时彩链接
     ssc_cn = CQSSC_ChooseNumber_lexiu(self.driver)
     ssc_cn.play_mode()  # 选择模式
     ssc_cn.big_little()  # 选择大小单双
     ssc_cn.ds_shiwei_all()  # 十位选择所有号码
     ssc_cn.ds_gewei_all()  # 个位选择所有号码
     aa = efcn.total_buy_text()
     self.assertIn("16注 ", 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)
     trade_name = sos.trade_name_text()  # 获取页面商品名称文本
     self.assertIn("商品名称:乐秀赢球-重庆时时彩", trade_name)