Exemple #1
0
 def test_jxks_many_note_many_double_Continue_case(self):
     """多注多倍,继续选号"""
     ha = HomePage(self.driver)
     hb = JXKS_ChooseNumber(self.driver)
     hb1 = ElevenFiveChooseNumber(self.driver)
     hc = JXKS_Confirm(self.driver)
     hc1 = EleChooseFiveConfirmLottery(self.driver)
     hc2 = ConfirmLottery(self.driver)
     hl = Login(self.driver)
     hd = LessPaySucess(self.driver)
     ha.open()
     ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作
     ha.Moveable_float_close()
     ha.jiangxi_express_three_link()  # 点击江西快三
     hb.play_jxks_sthdx()  ##点击三同号单选
     hb.sthdx_choosenumber_nu(5)  ##点击5注
     hb1.confirm_number_button()###点击确认选号
     hc.Button_add()  #点击倍数+号
     hc.Cont()###点击继续选号
     hb.sthdx_choosenumber_nu(1)##点击1注
     hb1.confirm_number_button()###点击确认选号
     mur=hc1.lottery_chase_throw_text()#读取注数
     self.assertEqual('6注1期2倍共24元',mur)
     hc1.submit_order_button()  # 点击提交给站主
     hl.login()  # 输入账号,密码
     hc1.submit_order_button()  # 点击提交给站主
     hc2.confirm_and_pay_button()  # 点击确认支付
     mur1 = hd.assect_pay()  ##读取支付状态文本
     self.assertEqual('订单提交成功', mur1)
Exemple #2
0
 def test_jxks_many_note_many_double_Continue_znzh_tj_case(self):
     """多注多倍,继续选号,智能追号,提交"""
     ha = HomePage(self.driver)
     hb = JXKS_ChooseNumber(self.driver)
     hb1 = ElevenFiveChooseNumber(self.driver)
     hc = JXKS_Confirm(self.driver)
     hc1 = EleChooseFiveConfirmLottery(self.driver)
     hc2 = ConfirmLottery(self.driver)
     hl = Login(self.driver)
     hd = LessPaySucess(self.driver)
     ssc_cl = CQSSCConfirmLottery(self.driver)
     ha.open()
     ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作
     ha.Moveable_float_close()
     ha.jiangxi_express_three_link()  # 点击江西快三
     hb.play_jxks_ethdx()  ##点击二同号单选
     hb.Ethdx(3)  ##点击3注
     hb1.confirm_number_button()  ###点击确认选号
     hc.Button_add()  #点击倍数+号
     hc.Cont()  ###点击继续选号
     hb.Ethdx(1)  ##点击1注
     hb1.confirm_number_button()  ###点击确认选号
     mur = hc1.lottery_chase_throw_text()  #读取注数
     self.assertEqual('10注1期2倍共40元', mur)
     ssc_cl.intelligently_chase_button()  # 点击智能追号
     ssc_cl.submit_button()  # 点击提交按钮
     hl.login()  # 输入账号,密码
     hc1.submit_order_button()  # 点击提交给站主
     hc2.confirm_and_pay_button()  # 点击确认支付
     mur1 = hd.assect_pay()  ##读取支付状态文本
     self.assertEqual('订单提交成功', mur1)
Exemple #3
0
 def test_jxks_many_note_many_double_Continue_znzh_case(self):
     """多注多倍,继续选号,智能追号"""
     ha = HomePage(self.driver)
     hb = JXKS_ChooseNumber(self.driver)
     hb1 = ElevenFiveChooseNumber(self.driver)
     hc = JXKS_Confirm(self.driver)
     hc1 = EleChooseFiveConfirmLottery(self.driver)
     hc2 = ConfirmLottery(self.driver)
     hl = Login(self.driver)
     hd = LessPaySucess(self.driver)
     ssc_cl = CQSSCConfirmLottery(self.driver)
     ha.open()
     ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作
     ha.Moveable_float_close()
     ha.jiangxi_express_three_link()  # 点击江西快三
     hb.play_jxks_sthdx()  ##点击三同号单选
     hb.sthdx_choosenumber_nu(2)  ##点击2注
     hb1.confirm_number_button()###点击确认选号
     hc.Button_add()  #点击倍数+号
     hc.Cont()###点击继续选号
     hb.sthdx_choosenumber_nu(1)##点击1注
     hb1.confirm_number_button()###点击确认选号
     mur=hc1.lottery_chase_throw_text()#读取注数
     self.assertEqual('3注1期2倍共12元',mur)
     ssc_cl.intelligently_chase_button()  # 点击智能追号
     text = ssc_cl.totalIssue_text()
     ssc_cl.revise_button()  # 点击修改方案
     ssc_cl.revise_times_add()  # 点击起始倍数的+
     ssc_cl.revise_confirm()  # 点击确认修改
     text1 = ssc_cl.totalIssue_text()
     self.assertNotEqual(text1, text, '倍数没有被修改')  # 检查是否修改追号期数
     ssc_cl.submit_button()  # 点击提交按钮
     hl.login()  # 输入账号,密码
     hc1.submit_order_button()  # 点击提交给站主
     hc2.confirm_and_pay_button()  # 点击确认支付
     mur1 = hd.assect_pay()  ##读取支付状态文本
     self.assertEqual('订单提交成功', mur1)