public void Check_Bind_CodeAvailable()
        {
            PortalChromeDriver.CreateFolder(@"HI\31.[客服人员设定]是否可以正常使用,当登陆密码有效期内(首次绑定)");
            //确保HI是Turn on的状态
            WeChatManagermentPage.GoToHIPage();
            HIPage.TurnOnSetup();
            //切换到Hi的设置Tab页
            HIPage.SwichHISettingTab(HIPortalPageUIElement.SubTabHIStaff);
            //判断是否已经绑定客服,如果绑定,则删除客服
            HIPage.DeleteStaff();
            //获取绑定客服验证码
            var value = HIPage.GetLoginCode();

            //H5页面进入平台测试账号对话窗口
            Mobile_WeChat_Utility.GetToTestAccount();
            //删除聊天记录
            Mobile_WeChat_Utility.ClearAllRecord();
            //发送验证码
            Mobile_WeChat_Utility.SendMessage(value);
            //验证网页版是否成功绑定
            Assert.IsTrue(!HIPage.IsStaffBindOnPortal());

            //验证Mobile是否有绑定成功提示
            PortalChromeDriver.TakeScreenShot(foler, "验证过期验证码是否能正常使用");
            Assert.IsTrue(Mobile_WeChat_Utility.IsStaffBind());

            Mobile_WeChat_Utility.SendMessage(value);
            Assert.IsFalse(Mobile_WeChat_Utility.GetLatestMessage("客服接入成功"));
        }
        public void Can_StaffBind_IfTimeOut()
        {
            string foler = PortalChromeDriver.CreateFolder(@"HI\29.[客服人员设定]是否可以正常使用,当登陆密码有效期超过60s时");

            WeChatManagermentPage.GoTo_Menu_Page();
            MenuPage.DeleteMenuItem();

            //确保HI是Turn on的状态
            WeChatManagermentPage.GoToHIPage();
            HIPage.TurnOnSetup();
            //切换到Hi的设置Tab页
            HIPage.SwichHISettingTab(HIPortalPageUIElement.SubTabHIStaff);
            //判断是否已经绑定客服,如果绑定,则删除客服
            HIPage.DeleteStaff();
            //获取绑定客服验证码
            var value = HIPage.GetLoginCode();

            //等待60秒,超过有效期
            Thread.Sleep(60 * 1000);
            //H5页面进入平台测试账号对话窗口
            Mobile_WeChat_Utility.GetToTestAccount();
            Mobile_WeChat_Utility.ClearAllRecord();
            //发送验证码
            Mobile_WeChat_Utility.SendMessage(value);
            MobileAndroidDriver.GetScreenshot(foler, "验证H5是否正确输入验证码");
            PortalChromeDriver.TakeScreenShot(foler, "验证Portal端客服是否绑定成功");
            Assert.IsFalse(Mobile_WeChat_Utility.IsStaffBind());

            foler = PortalChromeDriver.CreateFolder(@"HI\30.[客服人员设定]是否可以正常使用,当登陆密码过期后重新获取");
            value = HIPage.GetLoginCode();
            //删除聊天记录
            Mobile_WeChat_Utility.ClearAllRecord();
            //发送验证码
            Mobile_WeChat_Utility.SendMessage(value);
            //MobileH5.SendMessageWithMenu(value);
            Thread.Sleep(5 * 1000);

            PortalChromeDriver.TakeScreenShot(foler, "验证登陆密码过期后重新获取是否正常绑定");
            Assert.IsTrue(Mobile_WeChat_Utility.IsStaffBind());
        }