public void SendAnEmailToRandom() { var RandomEmail = GetRandomEmailAddress.GetRandomEmail(); new StartPage().Login(new User(LogIn, Password)); new InboxPage().GoToSentPage(); var sentPage = new SentPage(); sentPage.DeleteAllSent(); sentPage.GoToNewEmailPage(); var emailPage = new EmailPage(); emailPage.CreateANewEmail(new Email(EmailAddress, EmailSubject, EmailText)); emailPage.SaveAsADraft(); emailPage.GoToDraftPage(); new DraftPage().OpenEmail(); emailPage.SendEmail(); emailPage.GoToSentPage(); Assert.IsTrue(sentPage.SentEmailExist()); }
public void SendFolderAfterSendingTest() { var startForm = new StartPage(); startForm.Login(LogIn, Password); var inboxForm = new InboxPage(); inboxForm.GoToSentPage(); var sentForm = new SentPage(); sentForm.DeleteAllSent(); sentForm.GoToNewEmailPage(); var emailForm = new EmailPage(); emailForm.CreateANewEmail(EmailAddress, EmailSubject, EmailText); emailForm.SaveAsADraft(); emailForm.GoToDraftPage(); var draftForm = new DraftPage(); draftForm.OpenEmail(); emailForm.SendEmail(); emailForm.GoToSentPage(); Assert.IsTrue(sentForm.SentEmailExist()); }
public void SendFolderAfterSendingTest() { try { new StartPage().Login(new User(LogIn, Password)); new InboxPage().GoToSentPage(); var sentPage = new SentPage(); sentPage.DeleteAllSent(); sentPage.GoToNewEmailPage(); var emailPage = new EmailPage(); emailPage.CreateANewEmail(new Email(EmailAddress, EmailSubject, EmailText)); emailPage.SaveAsADraft(); emailPage.GoToDraftPage(); new DraftPage().OpenEmail(); emailPage.SendEmail(); emailPage.GoToSentPage(); Assert.IsTrue(sentPage.SentEmailExist()); } catch (Exception ex) { Logger.TakeScreenshot(); Logger.log.Error("Exception: " + ex); } }
public void DragAndDropEmailTest() { new StartPage().Login(new User(LogIn, Password)); new InboxPage().GoToSentPage(); var sentPage = new SentPage(); sentPage.DeleteAllSent(); sentPage.GoToNewEmailPage(); var emailPage = new EmailPage(); emailPage.CreateANewEmail(new Email(EmailAddress, EmailSubject, EmailText)); emailPage.SendEmail(); emailPage.GoToSentPage(); sentPage.DragAndDropFromSentToDelete(); Assert.IsFalse(sentPage.SentEmailExist()); }
public void DragAndDropEmailTest() { var startForm = new StartPage(); startForm.Login(LogIn, Password); var inboxForm = new InboxPage(); inboxForm.GoToSentPage(); var sentForm = new SentPage(); sentForm.DeleteAllSent(); sentForm.GoToNewEmailPage(); var emailForm = new EmailPage(); emailForm.CreateANewEmail(EmailAddress, EmailSubject, EmailText); emailForm.SendEmail(); emailForm.GoToSentPage(); sentForm.DragAndDropFromSentToDelete(); Assert.IsFalse(sentForm.SentEmailExist()); }
public void ThenTheEmailIsSent() { emailPage.GoToSentPage(); sentPage = new SentPage(); Assert.IsTrue(sentPage.SentEmailExist()); }