Beispiel #1
0
        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));
        }
Beispiel #2
0
        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));
        }
Beispiel #3
0
 internal bool HasComment(Comment comment)
 {
     return(AuthorIsSet(comment) &&
            CommentIsSet(comment));
 }