public void ConfirmForward() { Utils.WaitingElement wl = new Utils.WaitingElement(driver); wl.WaitElement(newLetter); newLetter.Click(); confirmLink.Click(); }
public void AddToSpam() { Utils.WaitingElement wl = new Utils.WaitingElement(driver); wl.WaitElement(newLetter); newLetter.Click(); letterMenu.Click(); reportSpamButton.Click(); }
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); }
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); }
public string GetLetterText() { Utils.WaitingElement wl = new Utils.WaitingElement(driver); wl.WaitElement(textOfLetter); return(textOfLetter.Text); }
public void OpenLastUnreadLetter() { Utils.WaitingElement wl = new Utils.WaitingElement(driver); wl.WaitElement(newLetter); newLetter.Click(); }
public string GetAttachName() { Utils.WaitingElement wl = new Utils.WaitingElement(driver); wl.WaitElement(attachName); return(attachName.Text); }