Esempio n. 1
0
 public override void InputFormFields()
 {
     if (Data.TestWindowName != null)
     {
         TestWindowName.SendKeys(Data.TestWindowName);
     }
     if (Data.Subject != null)
     {
         SubjectSelect.Wait(3).SelectByText(Data.Subject);
     }
     if (Data.GradeLow != null)
     {
         GradeFromSelect.Wait(5);
         GradeFromSelect.Wait(5).SelectByText(Data.GradeLow);
     }
     if (Data.GradeHigh != null)
     {
         GradeToSelect.Wait(5);
         GradeToSelect.Wait(5).SelectByText(Data.GradeHigh);
     }
     if (Data.DateFrom != null)
     {
         DateFrom.SendKeys(Data.DateFrom);
     }
     if (Data.DateTo != null)
     {
         DateTo.Clear();
         DateTo.SendKeys(Data.DateTo);
     }
     if (Data.Description != null)
     {
         Description.SendKeys(Data.Description);
     }
 }
 //implemented methods
 public override void ClearForm()
 {
     TestWindowName.Clear();
     SubjectSelect.Wait(3).SelectByText("All subjects");
     GradeFromSelect.Wait(5).SelectByText("");
     GradeToSelect.Wait(5).SelectByText("");
     DateFrom.Clear();
     DateTo.Clear();
 }