public void EditCourse(string name, string description) { CourseNameInput.Clear(); CourseDescriptionInput.Clear(); CourseNameInput.SendKeys(name); CourseDescriptionInput.SendKeys(description); }
public TeacherNewsPage CreateArticle() { WaitWhileNotClickableWebElement(CreateArticleReference); CreateArticleReference.Click(); ChooseFileInput.Click(); SendKeys.SendWait(@"C:\Users\hmeln\Documents\ATQC_Net\Demo 2\ch-064\OnlineExam.Pages\Sources\Example.jpg"); SendKeys.SendWait("{Enter}"); Wait(5000); CourseNameInput.SendKeys("New name"); TitleTextArea.SendKeys("New title"); ArticleTextArea.SendKeys("New article"); WaitWhileNotClickableWebElement(PublishInput); PublishInput.Click(); return(ConstructPage <TeacherNewsPage>()); }
public void FillCourse(string name, string description) { CourseNameInput.SendKeys(name); CourseDescriptionInput.SendKeys(description); }