/// <summary> /// Sends Email from Admin or Teacher to any user. /// </summary> /// <param name="subject"></param> /// <param name="email"></param> /// <param name="message"></param> /// <returns>MailBoxPage</returns> public MailBoxPage SendEmail(string subject, string email, string message) { SubjectInput.SendKeys(subject); EmailInput.SendKeys(email); MessageInput.SendKeys(message); SubmitInput.Click(); return(ConstructPage <MailBoxPage>()); }
public void SendTexts(List <string> phones) { foreach (var phone in phones) { OpenNewMessage(); PhoneInput.SendKeys(phone + Keys.Enter); MessageInput.SendKeys(Message); SendButton.Click(); DriverManager.Driver.WaitForElementToDisappear(By.XPath("//div[@class = 'composeNewMessageWrapper']")); } }