public void ThenUserReceivedEmailSuccessfully(int numberOfEmails) { inboxPage = inboxPage.OpenInbox(); bool isMessageInTheInbox = (inboxPage.FindElementsByTextInMessagesPanel(ComposePage.SentMessagesSubjects).Count == numberOfEmails); Assert.IsTrue(isMessageInTheInbox); }
public void ThenEmailsHasBeenDeleted() { inboxPage = inboxPage.OpenInbox(); bool isMessageNotInTheInbox = (inboxPage.FindElementsByTextInMessagesPanel(ComposePage.SentMessagesSubjects).Count == 0); Assert.IsTrue(isMessageNotInTheInbox); }