public void DeleteReply_AutoReply() { string filePath = PortalChromeDriver.CreateFolder(@"自动回复\删除reply"); AutoReplyPage.AddAutoReply("A", "Hi", "第一个自动回复"); AutoReplyPage.DeleteReplyInner(); PortalChromeDriver.TakeScreenShot(filePath, "删除reply"); Assert.IsFalse(Utility.IsAt(AutoReplyElement.ReplyContent.Replace("[{0}]", "[" + 1 + "]"), 1 + "")); }
public void DeleteReply_AutoReply_Weibo() { string filePath = PortalChromeDriver.CreateFolder(@"自动回复\删除reply"); WeChatManagermentPage.GoTo_AutoReply_Page(); PortalChromeDriver.ClickElementPerXpath(AutoReplyElement.KeyWordsReply); AutoReplyPage.TurnOnAutoReply(); AutoReplyPage.ClearReply(); AutoReplyPage.AddAutoReply("A", "Hi", "第一个自动回复"); AutoReplyPage.DeleteReplyInner(); PortalChromeDriver.TakeScreenShot(filePath, "删除reply"); Assert.IsFalse(Utility.IsAt(AutoReplyElement.ReplyContent.Replace("[{0}]", "[" + 1 + "]"), 1 + "")); }