예제 #1
0
 public void ConfirmForward()
 {
     Utils.WaitingElement wl = new Utils.WaitingElement(driver);
     wl.WaitElement(newLetter);
     newLetter.Click();
     confirmLink.Click();
 }
예제 #2
0
 public void AddToSpam()
 {
     Utils.WaitingElement wl = new Utils.WaitingElement(driver);
     wl.WaitElement(newLetter);
     newLetter.Click();
     letterMenu.Click();
     reportSpamButton.Click();
 }
예제 #3
0
 public void CreateMail(string toSmth, string someTheme, string someMessage, string pathToAttach)
 {
     GenerateMail(toSmth, someTheme, someMessage);
     AttachFile(pathToAttach);
     sendMessage.Click();
     Utils.WaitingElement wl = new Utils.WaitingElement(driver);
     wl.WaitElement(mailSent);
 }
예제 #4
0
 private void AttachFile(string pathToAttach)
 {
     buttonAttach.Click();
     SendKeys.SendWait(@pathToAttach);
     Thread.Sleep(TimeSpan.FromSeconds(1));
     SendKeys.SendWait(@"{Enter}");
     Utils.WaitingElement wl = new Utils.WaitingElement(driver);
     wl.WaitElement(fileAttached);
 }
예제 #5
0
 public string GetLetterText()
 {
     Utils.WaitingElement wl = new Utils.WaitingElement(driver);
     wl.WaitElement(textOfLetter);
     return(textOfLetter.Text);
 }
예제 #6
0
 public void OpenLastUnreadLetter()
 {
     Utils.WaitingElement wl = new Utils.WaitingElement(driver);
     wl.WaitElement(newLetter);
     newLetter.Click();
 }
예제 #7
0
 public string GetAttachName()
 {
     Utils.WaitingElement wl = new Utils.WaitingElement(driver);
     wl.WaitElement(attachName);
     return(attachName.Text);
 }