private bool likePosts(Blog blog) { if (blog.Posts.Count() == 0) { return(false); } foreach (var post in blog.Posts) { GoToURL(post.URL); if (_postPage.PutLike(post.URL)) { post.IsLiked = true; BotEnvironment.Logger.Info($"Liked: {post.URL}"); Thread.Sleep(BotEnvironment.Settings.Delay); } else { post.IsErrorState = true; BotEnvironment.Logger.Info($"Error! Not liked: {post.URL}"); return(false); } } return(true); }