public void TestDeleteEmail() { //Login to the mail.ru HomePage homePage = new HomePage(); homePage.Login(login, password); //Assert, that the login is successful InboxPage inboxPage = new InboxPage(); inboxPage.ClickCreate(); //Create a new mail EmailPage emailPage = new EmailPage(); emailPage.CreateDraftEmail(address, subject, expectedTestBody); //Send the mail emailPage.SendEmail(); //Navigate to SentPage NavigationMenu navigationMenu = new NavigationMenu(); SentPage sentPage = navigationMenu.NavigateToSent(); //Verify, that the mail presents in ‘Sent’ folder. sentPage.CheckSentEmail(subject); //Delete the mail from Sent folder sentPage.DeleteEmail(subject); //Navigate to recycle bin RecycleBinPage recyclePage = navigationMenu.NavigateToRecycle(); //Verify, that the mail presents in ‘Recycle bin’ folder. recyclePage.CheckDeletedEmail(subject); }