public static bool IsMessagePresentInInbox(string email, string subject) { InboxPage page = new InboxPage(); page.GoToPage(); page.WaitForPageToLoad(); return(page.IsMessageExists(email, subject, 7)); }
public static void CleanInbox() { InboxPage page = new InboxPage(); page.GoToPage(); page.WaitForPageToLoad(); if (page.SelectAllMessages()) { page.BtnDelete.Click(5); page.WaitForPageToLoad(); } }