Example #1
0
 def test_dantuo_front3_choose_case(self):
     '''山东11选5胆拖玩法,前三组选玩法,2个胆码,2个拖码流程测试'''
     hp = HomePage(self.driver)
     hp.open()
     ulcn = UnionLottoChooseNumber(self.driver)
     ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作
     hp.Moveable_float_close()
     hp.sd_11_5_link()  # 点击山东11选5链接
     efcn = ElevenFiveChooseNumber(self.driver)
     efcn.countdown_text()  # 检查“距离第xxx期截止:”文案是否存在
     efcn.spread_mode_button()  ##选择展开玩法
     efcn.mode_choose(22,23)#选择山东11选5胆拖模式前三组选玩法
     efcn.dantuo_choose_num(2,2)#选取2个胆码2个拖码
     total = efcn.total_buy_text()  # 获取注数文本
     self.assertIn("2", total)  # 检查2注
     efcn.confirm_number_button()#点击确认选号
 def test_danyuo_many_lottery_and_times_case(self):
     '''胆拖投注,在投注确认页面增加倍数和期数,提交订单'''
     hp = HomePage(self.driver)
     hp.open()
     ulcn = UnionLottoChooseNumber(self.driver)
     ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作
     hp.Moveable_float_close()
     hp.gx_11_5_link()  # 点击广西11选5链接
     efcn = ElevenFiveChooseNumber(self.driver)
     efcn.countdown_text()  # 检查“距离第xxx期截止:”文案是否存在
     efcn.spread_mode_button()  ##选择展开玩法
     efcn.mode_choose(24, 16)  # 选择广西11选5胆拖模式任选二玩法
     efcn.dantuo_choose_num(1, 2)  # 选取1个胆码2个拖码
     total = efcn.total_buy_text()  # 获取注数文本
     self.assertIn("2", total)  # 检查2注
     efcn.confirm_number_button()  # 点击确认选号
     ecfcl = EleChooseFiveConfirmLottery(self.driver)
     ecfcl.chase_ticket_input("3")  # 输入追3期
     ecfcl.throw_times_input("3")  # 输入投3倍