public void IsHICardAvailableAfterHITurnOff() { //Portal确保HI是Turn on的状态 WeChatManagermentPage.GoToHIPage(); HIPage.TurnOnSetup(); //H5页面进入平台测试账号对话窗口 Mobile_WeChat_Utility.GetToTestAccount(); //清空聊天记录 Mobile_WeChat_Utility.ClearAllRecord(); //H5呼叫客服 Mobile_WeChat_Utility.SendMessage("客服"); //关闭HI Utility.TurnOff(); Mobile_WeChat_Utility.ClickHICard(); string foler = PortalChromeDriver.CreateFolder(@"HI\H5.23.人工客服功能关闭,是否可以打开H5对话窗口"); MobileAndroidDriver.GetScreenshot(foler, "H5"); //Assert.IsTrue(HIMobileH5.IsAtPerXpath(HIMobileH5Element.HIOffError)); Assert.IsFalse(Mobile_WeChat_Utility.IsAt(HIMobileH5Element.HiCardXpath)); Mobile_WeChat_Utility.BackButtonClick(); }