public void CheckIfContactUsMessageIsVisibleInInbox() { UITest(() => { var contactUs = sideBar.GoToContactUsPage(); contactUs.ContactUs(Constants.EXAMPLE_EMAIL, "Name", testMessage); header.GoToLogInPage().SignIn(Constants.ADMIN_EMAIL, Constants.ADMIN_PASSWORD); var mailBox = sideBar.GoToMailBoxPage(); var inbox = mailBox.InboxElementClick(); var blocks = inbox.GetInboxBlocksList(); var existMessage = blocks.Any(x => x.IsEqualText(testMessage)); Assert.True(existMessage); }); }