public void TestSmokeEmail() { //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); //Navigate to DraftsPage NavigationMenu navigationMenu = new NavigationMenu(); DraftsPage draftsPage = navigationMenu.NavigateToDrafts(); //Verify, that the mail presents in ‘Drafts’ folder. draftsPage.ClickDraftEmail(subject); //Verify the draft content (addressee, subject and body – should be the same) emailPage = new EmailPage(); emailPage.CheckEmailFields(address, subject, expectedTestBody); //Send the mail emailPage.SendEmail(); //Navigate to DraftsPage and verify, that the mail disappeared from ‘Drafts’ folder draftsPage = navigationMenu.NavigateToDrafts(); draftsPage.CheckDisappearedEmail(subject); //Navigate to SentPage SentPage sentPage = navigationMenu.NavigateToSent(); //Verify, that the mail presents in ‘Sent’ folder. sentPage.CheckSentEmail(subject); //Log out homePage = navigationMenu.LogOut(); }