示例#1
0
 public void EditCourse(string name, string description)
 {
     CourseNameInput.Clear();
     CourseDescriptionInput.Clear();
     CourseNameInput.SendKeys(name);
     CourseDescriptionInput.SendKeys(description);
 }
示例#2
0
 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>());
 }
示例#3
0
 public void FillCourse(string name, string description)
 {
     CourseNameInput.SendKeys(name);
     CourseDescriptionInput.SendKeys(description);
 }