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 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 GivenIHaveCreatedANewEmailWithAndAnd(string emailAddress, string emaiSubject, string emailText) { sentPage = new SentPage(); sentPage.GoToNewEmailPage(); emailPage = new EmailPage(); emailPage.CreateANewEmail(new Email(emailAddress, emaiSubject, emailText)); }
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 CreateDraftEmailTest() { new StartPage().Login(new User(LogIn, Password)); new InboxPage().GoToNewEmailPage(); var emailPage = new EmailPage(); emailPage.CreateANewEmail(new Email(EmailAddress, EmailSubject, EmailText)); emailPage.SaveAsADraft(); emailPage.GoToDraftPage(); Assert.AreEqual(EmailAddress, new DraftPage().GetEmailAddress()); }
public void CompareDraftEmailTextTest() { new StartPage().Login(new User(LogIn, Password)); new InboxPage().GoToNewEmailPage(); var emailForm = new EmailPage(); emailForm.CreateANewEmail(new Email(EmailAddress, EmailSubject, EmailText)); emailForm.SaveAsADraft(); emailForm.GoToDraftPage(); new DraftPage().OpenEmail(); Assert.IsTrue(emailForm.GetDraftEmailText().Contains(EmailSubject)); }
public void CreateDraftEmailTest() { var startForm = new StartPage(); startForm.Login(LogIn, Password); var inboxForm = new InboxPage(); inboxForm.GoToNewEmailPage(); var emailForm = new EmailPage(); emailForm.CreateANewEmail(EmailAddress, EmailSubject, EmailText); emailForm.SaveAsADraft(); emailForm.GoToDraftPage(); var draftForm = new DraftPage(); Assert.AreEqual(EmailAddress, draftForm.GetEmailAddress()); }
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 CreateDraftEmailTest() { try { new StartPage().Login(new User(LogIn, Password)); new InboxPage().GoToNewEmailPage(); var emailPage = new EmailPage(); emailPage.CreateANewEmail(new Email(EmailAddress, EmailSubject, EmailText)); emailPage.SaveAsADraft(); emailPage.GoToDraftPage(); Assert.AreEqual(EmailAddress, new DraftPage().GetEmailAddress()); } catch (Exception ex) { Logger.TakeScreenshot(); Logger.log.Error("Exception: " + ex); } }
public void DraftFolderAfterSendingTest() { new StartPage().Login(new User(LogIn, Password)); new InboxPage().GoToDraftPage(); var draftPage = new DraftPage(); draftPage.DeleteAllDraft(); draftPage.GoToNewEmailPage(); var emailPage = new EmailPage(); emailPage.CreateANewEmail(new Email(EmailAddress, EmailSubject, EmailText)); emailPage.SaveAsADraft(); emailPage.GoToDraftPage(); draftPage.OpenEmail(); emailPage.SendEmail(); emailPage.GoToDraftPage(); Assert.IsFalse(draftPage.DraftEmailExist()); }
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 GivenIHaveCreatedANewEmailOnTheStartPageWithAndAnd(string emailAddress, string emaiSubject, string emailText) { new InboxPage().GoToNewEmailPage(); emailPage = new EmailPage(); emailPage.CreateANewEmail(new Email(emailAddress, emaiSubject, emailText)); }