private bool CommentIsSet(Comment comment) { var comments = browser.FindElements(By.CssSelector("li.comment")); return(comments.Any(c => c.FindElement(By.ClassName("comment-content")).Text == comment.Text)); }
private bool AuthorIsSet(Comment comment) { var comments = browser.FindElements(By.CssSelector("li.comment")); return(comments.Any(c => c.FindElement(By.CssSelector("b.fn")).Text == comment.Author)); }
internal bool HasComment(Comment comment) { return(AuthorIsSet(comment) && CommentIsSet(comment)); }