public void TestDeleteEmail() { User user = usercreator.Create(login, password); //Login to the mail.ru HomePage homePage = new HomePage(); InboxPage inboxPage = homePage.Login(user); //Assert a user is logged in Assert.IsTrue(inboxPage.IsSucessfullyLoggedIn(), "User is not logged in"); //Create a new mail EmailPage emailPage = inboxPage.ClickCreateNewMessageButton(); email = new DraftEmail(email); //Send the mail emailPage.ClickSendEmailButton(); //Navigate to SentPage NavigationMenu navigationMenu = new NavigationMenu(); SentPage sentPage = navigationMenu.NavigateToSent(); //Verify, that the mail presents in ‘Sent’ folder. sentPage.WaitForEmailinSentFolder(subject); //Delete the mail from Sent folder //sentPage.DeleteEmail(subject); //Delete email dragging to the trash bin sentPage.DragEmailToTrashBin(subject); //Navigate to recycle bin RecycleBinPage recyclePage = navigationMenu.NavigateToRecycle(); //Verify, that the mail presents in ‘Recycle bin’ folder. recyclePage.WaitForDeletedEmail(subject); }