예제 #1
0
        public void AddAutoReply_IllegalReply()
        {
            string filePath = PortalChromeDriver.CreateFolder(@"自动回复\不能添加包含敏感词汇的回复");

            AutoReplyPage.AddAutoReply("A", "Hi", "法轮功");
            PortalChromeDriver.TakeScreenShot(filePath, "不能添加包含敏感词汇的回复");
            Assert.IsTrue(Utility.IsAt(AutoReplyElement.Alert_Failure, "抱歉,您的回复中包含了不当内容,请修改后重新保存。"));
            AutoReplyPage.Alert_Failure_OK();
        }