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_group_six_many_note_many_double_Coun_nu_case(self): """验证多注多倍号码,点击继续选号按钮功能""" ha = HomePage_leyou(self.driver) hb = There_D_choosenumber_leyou(self.driver) hb1 = ArrangeFiveChooseNumber_leyou(self.driver) hb2 = UnionLottoChooseNumber_leyou(self.driver) hc = ConfirmLottery_leyou(self.driver) hd = ArrangeFiveConfirmLottery_leyou(self.driver) hl = Login_leyou(self.driver) ha.open() ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作 ha.Moveable_float_close() ha.fucai_3D_link() ###点击3D hb.Play_d() ###点击玩法 hb.Play_group_six_d() ####点击组六 hb.group_theres_d(2, 3) hb1.Confirm_nu() # 点击确认选号 hd.Multiple_input(10) ###点击倍数输入功能 hd.Coun_nu() #点击继续选号 hb.group_theres_d(2, 1) hb1.Confirm_nu() # 点击确认选号 mur = hd.Test_note_nu() self.assertEqual('11', mur) ####断言注数 mur = hd.Test_multiple_show() # 读取倍数 self.assertEqual('10', mur) ##断言 hc.submit_order_to_station_owner_button() ##点击提交给站主
def test_group_six_clear_number_case(self): """验证选号页面,点击清除选号按钮功能""" ha = HomePage_leyou(self.driver) hb = There_D_choosenumber_leyou(self.driver) hb1 = ArrangeFiveChooseNumber_leyou(self.driver) hb2 = UnionLottoChooseNumber_leyou(self.driver) hc = ConfirmLottery_leyou(self.driver) hd = ArrangeFiveConfirmLottery_leyou(self.driver) hl = Login_leyou(self.driver) ha.open() ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作 ha.Moveable_float_close() ha.fucai_3D_link() ###点击3D hb.Play_d() ###点击玩法 hb.Play_group_six_d() ####点击组六 hb.group_theres_d(2, 2) hb2.clear_number() # 点击清除选号页面 hb1.Confirm_nu() # 点击确认选号 hb1.Confirm_nu() # 点击确认选号 mur = hd.Test_note_nu() self.assertEqual('1', mur) ####断言注数 hc.submit_order_to_station_owner_button() ##点击提交给站主 #hl.new_user_login_tab() # 点击新登录 hl.login_leyou() # 输入账号,密码 hc.submit_order_to_station_owner_button() # 点击提交给站主 hc.confirm_and_pay_button() # 点击确认支付
def test_group_six_Del_all_nu_case(self): """验证确认投注页面,点击删除选号图标功能""" ha = HomePage_leyou(self.driver) hb = There_D_choosenumber_leyou(self.driver) hb1 = ArrangeFiveChooseNumber_leyou(self.driver) hb2 = UnionLottoChooseNumber_leyou(self.driver) hc = ConfirmLottery_leyou(self.driver) hd = ArrangeFiveConfirmLottery_leyou(self.driver) hl = Login_leyou(self.driver) ha.open() ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作 ha.Moveable_float_close() ha.fucai_3D_link() ###点击3D hb.Play_d() ###点击玩法 hb.Play_group_six_d() ####点击组六 hb2.machine_choose_button() ###点击机选 hb2.machine_choose_ten_button() ##点击机选10注 hc.delete_all_num_button() ###点击清除所有选号 mur = hb.Clear() self.assertEqual('清空', mur)
def test_group_six_a_note_Del_none_case(self): """验证确认投注页面,点击X图标功能""" ha = HomePage_leyou(self.driver) hb = There_D_choosenumber_leyou(self.driver) hb1 = ArrangeFiveChooseNumber_leyou(self.driver) hb2 = UnionLottoChooseNumber_leyou(self.driver) hc = ConfirmLottery_leyou(self.driver) hd = ArrangeFiveConfirmLottery_leyou(self.driver) hl = Login_leyou(self.driver) ha.open() ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作 ha.Moveable_float_close() ha.fucai_3D_link() ###点击3D hb.Play_d() ###点击玩法 hb.Play_group_six_d() ####点击组六 hb.group_theres_d(2, 3) hb1.Confirm_nu() # 点击确认选号 hb.Del_x() ######删除1注 hb.group_theres_d(2, 3) hb1.Confirm_nu() # 点击确认选号 mur = hd.Test_note_nu() self.assertEqual('10', mur) ####断言注数