public void Menu_NoMaterial_Tips()
        {
            string filePath = PortalChromeDriver.CreateFolder(@"自定义菜单\素材库没有素材,是否提示去微信后台添加");

            PortalChromeDriver.ClickElementPerXpath(MenuElement.Account_Arrow_Down);
            Thread.Sleep(5 * 1000);
            PortalChromeDriver.ClickElementPerXpath(MenuElement.Logout);
            LoginPage.LoginWithPhoneNumber("13269120258");
            Thread.Sleep(10 * 1000);

            MobileAndroidDriver.AndroidMmsInitialize();
            Mobile_WeChat_Utility.GetLoginCode();

            HomePage.ClickWeChatApp("不是衣橱的海南");
            WeChatManagermentPage.GoTo_Menu_Page();
            MenuPage.DeleteMenuItem();
            MenuPage.AddMenu("1");
            PortalChromeDriver.ClickElementPerXpath(MenuElement.Send_Message);
            PortalChromeDriver.ClickElementPerXpath(MenuElement.tabNews);
            PortalChromeDriver.ClickElementPerXpath(MenuElement.ImageChoose);
            //PortalChromeDriver.TakeScreenShot(filePath, "素材库没有素材,是否提示去微信后台添加");
            Thread.Sleep(2 * 1000);

            Assert.IsTrue(Utility.IsAt(MenuElement.NoMaterial_Tip, "没有同步到素材,请去往微信后台添加。新添加素材最多需15分钟同步到本地。"));
            //Assert.IsTrue(PortalChromeDriver.GetElementByClassName("menu_button menu_highlight").Text=="1");
        }
        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());
        }
 public void IntiSecretRelationship()
 {
     WeChatManagermentPage.GoTo_Menu_Page();
     MenuPage.DeleteMenuItem();
 }