public static void CleanTrash() { TrashPage page = new TrashPage(); page.WaitForPageToLoad(); if (page.SelectAllMessages()) { page.WaitForPageToLoad(); page.BtnDeleteForever.Click(7); page.WaitForPageToLoad(); } }
public static bool IsMessagePresentInTrash(string email, string subject) { TrashPage page = new TrashPage(); page.WaitForPageToLoad(); return(page.IsMessageExists(email, subject, 7)); }