示例#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);
 }