def test_there_D_play_case(self): """验证3D投注选号页面,切换玩法""" 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.Play_d() ###点击玩法 hb.Play_direct_d() ##点击直选 mur = hb.Show_play() self.assertEqual('直选', mur) hb.Play_d() ###点击玩法 hb.Play_group_there_d() #####点击组三 mur = hb.Show_play() self.assertEqual('组三', mur) hb.Play_d() ###点击玩法 hb.Play_group_six_d() ####点击组六 mur = hb.Show_play() self.assertEqual('组六', mur) hb.Play_d() ###点击玩法 hb.Play_group_direct_add_d() ###点击直选和值 mur = hb.Show_play() self.assertEqual('直选和值', mur) hb.Play_d() ###点击玩法 hb.Play_group_there_add_d() #####点击组三和值 mur = hb.Show_play() self.assertEqual('组三和值', mur) hb.Play_d() ###点击玩法 hb.Play_group_six_add_d() ##点击组六和值 mur = hb.Show_play() self.assertEqual('组六和值', mur)
def test_arrany_there_play(self): """切换玩法""" ha = HomePage_leyou(self.driver) hb = Arrang_there_choosenumber_leyou(self.driver) hb1 = There_D_choosenumber_leyou(self.driver) hb2 = ArrangeFiveChooseNumber_leyou(self.driver) ha.open() ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作 ha.Moveable_float_close() ha.rank_three_link() ####点击排列3 hb.Play() ##点击玩法 hb.Play_Direct() ###点击直选 mur1 = hb1.Show_play() self.assertEqual('排列三-直选', mur1) hb.Play() ##点击玩法 hb.Play_Group_there() ###点击组三 mur2 = hb1.Show_play() self.assertEqual('排列三-组三', mur2) hb.Play() ##点击玩法 hb.Play_Group_six() ###点击组六 mur3 = hb1.Show_play() self.assertEqual('排列三-组六', mur3)