コード例 #1
0
 public void Test1_LogInToMailbox()
 {
     LoginPage lp = new LoginPage(_driver);
     lp.SetUserNamePassword("Lexx20", "astalavista");
     MainPage mp = lp.ClickLoginButton();
     Assert.IsTrue(mp.loginEmail.Text.ToLower().Equals("*****@*****.**"));
     mp.LogOut();
 }
コード例 #2
0
 public void Test2_CreateNewMessageAndSave()
 {
     LoginPage lp = new LoginPage(_driver);
     lp.SetUserNamePassword("Lexx20", "astalavista");
     MainPage mp = lp.ClickLoginButton();
     NewMessagePage nmp = mp.CreateNewMessage();
     nmp.FillTextFields("subject", "body");
     nmp.SaveAsDraft();
     nmp.NavigateToDraft();
     Assert.IsTrue(mp.draftMessages.Displayed);
     mp.LogOut();
 }
コード例 #3
0
 public void Test3_SendMessage()
 {
     LoginPage lp = new LoginPage(_driver);
     lp.SetUserNamePassword("Lexx20", "astalavista");
     MainPage mp = lp.ClickLoginButton();
     mp.NavigateToDraft();
     NewMessagePage nmp = mp.SelectMessageFromDraft();
     nmp.SendMessage();
     nmp.NavigateToDraft();
     BasePage.VerifyMessageExistInFolder(By.XPath(mp.messageXpath), "Draft");
     //Assert.IsFalse(mp.message.Displayed);
     mp.NavigateToSent();
     BasePage.VerifyMessageExistInFolder(By.XPath(mp.messageXpath), "Send");
     //Assert.IsTrue(mp.message.Displayed);
     mp.LogOut();
 }