public void DropDownList() { WebDriverWaitUtil.DriverWait(driver, byDropDown); dropDownLetters.ClickElement(); WebDriverWaitUtil.DriverWait(driver, byListDropDown); dropDownUnReadLetters.ClickElement(); }
public void SendToSpam() { WebDriverWaitUtil.DriverWait(driver, byInboxLetter); letters[1].ClickElement(); WebDriverWaitUtil.DriverWait(driver, bySpamButton); spamButton.ClickElement(); }
public void MarkLettersByFlag() { WebDriverWaitUtil.DriverWait(driver, byInboxLetter); foreach (IWebElement ltrs in buttonMarkFlages) { ltrs.ClickElement(); } }
public HomePage Login(string login, string password) { WebDriverWaitUtil.DriverWait(driver, byStartMail); loginField.SendText(login); buttonMail.ClickElement(); WebDriverWaitUtil.DriverWait(driver, byInputPassword); passwordField.SendText(password); buttonMail.ClickElement(); WebDriverWaitUtil.DriverWait(driver, byLogoutLink); return(new HomePage(driver)); }
public void WriteMessage(string addressee, string theme, string message) { WebDriverWaitUtil.DriverWait(driver, byWriteMessage); buttonWriteLetter.ClickElement(); WebDriverWaitUtil.DriverWait(driver, byWindowWriteMessage); recipient.SendText(addressee); subject.SendText(theme); textMessage.ClickElement(); textMessage.SendText(message); sendButton.ClickElement(); }
public int CountUnReadLetters() { WebDriverWaitUtil.DriverWait(driver, byReadLetters); return(unReadLetters.Count); }