示例#1
0
 private void AddStudents()
 {
     foreach (StudentDetails stud in students)
     {
         DemoSiteCreateStudentPage.AddStudentDetails();
         DemoSiteCreateStudentPage.EnterName(stud.Name);
         DemoSiteCreateStudentPage.SelectClass(stud.Class);
         DemoSiteCreateStudentPage.EnterRollNo(stud.RollNo);
         DemoSiteCreateStudentPage.SelectGender(stud.GenderType);
         DemoSiteCreateStudentPage.SaveStudentDetails();
     }
 }
示例#2
0
 public void GivenIEnterTheNameAs(string name)
 {
     ScenarioContext.Current["StudentName"] = name;
     DemoSiteCreateStudentPage.AddStudentDetails();
     DemoSiteCreateStudentPage.EnterName(name);
 }