public void Can_Send_Praise_Back() { FeedbackPage feedbackPage = new FeedbackPage(browser); PraisePage praisePage = new PraisePage(browser); HomePage homePage = new HomePage(browser); feedbackPage.GoTo(); feedbackPage.SelectPraise(); feedbackPage.SendPraiseBack(); var nameOfReceiver = praisePage.GetNameOfReceiver(); praisePage.SendPraise(); praisePage.AllDoneHere(); var nameOfSender = homePage.GetNameOfSender(); var lastPublicPraise = homePage.GetLastPublicPraise(); Assert.AreEqual($"{nameOfSender} sent praise to {nameOfReceiver}", lastPublicPraise); }