def test_there_D_play_instruction(self): """验证玩法说明""" ha = HomePage_leyou(self.driver) hb = There_D_choosenumber_leyou(self.driver) ha.open() ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作 ha.Moveable_float_close() ha.fucai_3D_link() ###点击3D hb.Instruct() ##点击右上角... hb.Play_instruction() ##点击玩法说明 mur = hb.Group_there_add_play_instruction() self.assertEqual('组三和值', mur) hb.There_D_know()
def test_play_instruction_case(self): '''在投注选号页面,点击右上角玩法说明,可以打开和关闭''' hp = HomePage_leyou(self.driver) tD = There_D_choosenumber_leyou(self.driver) ulcn = UnionLottoChooseNumber_leyou(self.driver) efcn = ElevenFiveChooseNumber_leyou(self.driver) hp.open() hp.Moveable_float_close() hp.gd_11_5_link() # 点击广东11选5链接 ulcn.There_clock() #点击选号页的。。。 tD.Play_instruction() #点击玩法说明 tD.There_D_know() #点击我知道了 text1 = efcn.total_buy_text() self.assertIn("请至少选择", text1)
def test_play_instruction_open_close_case(self): '''在投注选号页面,点击右上角玩法说明,可以打开和关闭''' ha = HomePage_leyou(self.driver) hb = HaobcChooseNumber_leyou(self.driver) pbcn = PaintBallChooseNumber_leyou(self.driver) l = Login_leyou(self.driver) t = There_D_choosenumber_leyou(self.driver) ha.open() ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作 ha.Moveable_float_close() ha.My_lottery_ticket() # 点击我的彩票 l.login_leyou() # 点击登录 ha.homepage_link() # 点击首页 ha.haobc_link() #点击竞彩蓝球 t.Instruct() #点击右上角的。。。 hb.Play_instruction() #点击玩法说明 t.There_D_know() #点击我知道了
def test_play_instruction_open_close_case(self): '''在投注选号页面,点击右上角玩法说明,可以打开和关闭''' hp = HomePage_leyou(self.driver) pbcn = PaintBallChooseNumber_leyou(self.driver) cl = ConfirmLottery_leyou(self.driver) pbc = PaintBallConfirm_leyou(self.driver) l = Login_leyou(self.driver) sos = SubmitOrderSuccess_leyou(self.driver) t = There_D_choosenumber_leyou(self.driver) hp.open() ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作 hp.Moveable_float_close() hp.My_lottery_ticket() # 点击我的彩票 l.login_leyou() # 点击登录 hp.homepage_link() # 点击首页 hp.paintball_link() ##点击竞彩足球 t.Instruct() #点击右上角的。。。 pbcn.paintball_play_instruct() #点击玩法说明 t.There_D_know() #点击我知道了