/// <summary> /// input show more form fields /// </summary> public void InputFormFieldsShowMore() { if (string.IsNullOrEmpty(Data.DataCollectionStatus) == false) { DataCollectionStatus.SelectByText(Data.DataCollectionStatus); } if (string.IsNullOrEmpty(Data.TestContent) == false) { TestContent.SendKeys(Data.TestContent); } if (string.IsNullOrEmpty(Data.TestCreatorFirstname) == false) { TestCreatorFirstname.SendKeys(Data.TestCreatorFirstname); } if (string.IsNullOrEmpty(Data.TestCreatorLastname) == false) { TestCreatorLastname.SendKeys(Data.TestCreatorLastname); } if (string.IsNullOrEmpty(Data.StandardSet) == false) { StandardSet.SelectByText(Data.StandardSet); } if (string.IsNullOrEmpty(Data.Institution) == false) { Institution.SendKeys(Data.Institution); } if (string.IsNullOrEmpty(Data.TestCategory) == false) { TestCategory.SelectByText(Data.TestCategory); } if (string.IsNullOrEmpty(Data.AdaptiveTests) == false) { AdaptiveTests.SelectByText(Data.AdaptiveTests); } if (string.IsNullOrEmpty(Data.Publisher) == false) { Publisher.SendKeys(Data.Publisher); } if (string.IsNullOrEmpty(Data.ExternalTestId) == false) { ExternalTestId.SendKeys(Data.ExternalTestId); } }
//implemented methods public override void InputFormFields() { if (Data.TestNameId != null) { TestNameId.Clear(); TestNameId.SendKeys(Data.TestNameId); } if (Data.Subject != null) { SubjectSelect.Wait().SelectByText(Data.Subject); } if (Data.GradeLevelFrom != null) { GradeFromSelect.Wait().SelectByText(Data.GradeLevelFrom); } if (Data.GradeLevelTo != null) { GradeToSelect.Wait().SelectByText(Data.GradeLevelTo); } if (Data.AdminDateRangeFrom != null) { AdminDateRangeFrom.Clear(); AdminDateRangeFrom.SendKeys(Data.AdminDateRangeFrom); } if (Data.AdminDateRangeTo != null) { AdminDateRangeTo.Clear(); AdminDateRangeTo.SendKeys(Data.AdminDateRangeTo); } switch (GridName) { case ViewPortalResultsGridNames.MyTests: if (isAdvancedSearchExpanded) { if (Data.DataCollectionStatus != null) { DataCollectionStatus.SelectByText(Data.DataCollectionStatus); } if (Data.TestContent != null) { TestContent.Clear(); TestContent.SendKeys(Data.TestContent); } if (Data.StandardSet != null) { StandardSet.SelectByText(Data.StandardSet); } if (Data.AdaptiveTests != null) { AdaptiveTests.SelectByText(Data.AdaptiveTests); } } break; case ViewPortalResultsGridNames.InProgressTests: if (isAdvancedSearchExpanded) { if (Data.TestContent != null) { TestContent.Clear(); TestContent.SendKeys(Data.TestContent); } if (Data.TestCreatorFirstName != null) { TestCreatorFirstName.Clear(); TestCreatorFirstName.SendKeys(Data.TestCreatorFirstName); } if (Data.TestCreatorLastName != null) { TestCreatorLastName.Clear(); TestCreatorLastName.SendKeys(Data.TestCreatorLastName); } if (Data.StandardSet != null) { StandardSet.SelectByText(Data.StandardSet); } if (Data.AdaptiveTests != null) { AdaptiveTests.SelectByText(Data.AdaptiveTests); } } else { if (Data.DataCollectionStatus != null) { DataCollectionStatus.SelectByText(Data.DataCollectionStatus); } } break; case ViewPortalResultsGridNames.ScheduledTests: if (isAdvancedSearchExpanded) { if (Data.DataCollectionStatus != null) { DataCollectionStatus.SelectByText(Data.DataCollectionStatus); } if (Data.TestContent != null) { TestContent.Clear(); TestContent.SendKeys(Data.TestContent); } if (Data.TestCreatorFirstName != null) { TestCreatorFirstName.Clear(); TestCreatorFirstName.SendKeys(Data.TestCreatorFirstName); } if (Data.TestCreatorLastName != null) { TestCreatorLastName.Clear(); TestCreatorLastName.SendKeys(Data.TestCreatorLastName); } if (Data.StandardSet != null) { StandardSet.SelectByText(Data.StandardSet); } if (Data.AdaptiveTests != null) { AdaptiveTests.SelectByText(Data.AdaptiveTests); } } break; case ViewPortalResultsGridNames.RecommendedTests: if (isAdvancedSearchExpanded) { if (Data.TestContent != null) { TestContent.Clear(); TestContent.SendKeys(Data.TestContent); } if (Data.TestCreatorFirstName != null) { TestCreatorFirstName.Clear(); TestCreatorFirstName.SendKeys(Data.TestCreatorFirstName); } if (Data.TestCreatorLastName != null) { TestCreatorLastName.Clear(); TestCreatorLastName.SendKeys(Data.TestCreatorLastName); } if (Data.StandardSet != null) { StandardSet.SelectByText(Data.StandardSet); } if (Data.AdaptiveTests != null) { AdaptiveTests.SelectByText(Data.AdaptiveTests); } } else { if (Data.TestCategory != null) { TestCategory.SelectByText(Data.TestCategory); } } break; default: throw new ArgumentOutOfRangeException(); } }
//implemented methods public override void InputFormFields() { if (Data.TestId != null) { TestId.Name.Wait(3).Clear(); TestId.Name.SendKeys(Data.TestId); } if (Data.Subject != null) { SubjectSelect.Wait(5).SelectByText(Data.Subject); } if (Data.GradeLow != null) { //GradeLevel.From.Wait(5); GradeFromSelect.Wait(5).SelectByText(Data.GradeLow); DriverCommands.WaitAndMeasurePageLoadTime(90, 30); InitElements(); } if (Data.GradeHigh != null) { //GradeLevel.To.Wait(5); GradeToSelect.Wait(5).SelectByText(Data.GradeHigh); DriverCommands.WaitAndMeasurePageLoadTime(90, 30); InitElements(); } /* only applies to district, but not teachers * if (Data.InstitutionSource != null) * { * InstitutionSource.Clear(); * InstitutionSource.SendKeys(Data.InstitutionSource); * } */ if (Data.TestCategory != null) { TestCategory.SelectByText(Data.TestCategory); } if (Data.ScoreType != null) { ScoreType.SelectByText(Data.ScoreType); } if (Data.PreferredStandardsDocument != null) { PreferredStandardsDocument.SelectByText(Data.PreferredStandardsDocument); } ExpandInitialItemSettings(); //EnableTextFormatting.UseItemSettings.Wait(7).Click(); EnableTextFormatting.UseItemSettings.Wait(5).Click(); if (Data.EnableTextFormattingOpenResponse != null) { if (Data.EnableTextFormattingOpenResponse == "1") { SelectEnableTextFormattingOpenResponseItems(); if (Data.EnableEquationEditor != null) { if (Data.EnableEquationEditor) { CheckEnableEquationEditor(); } } } } if (Data.DisableTextFormattingOpenResponse != null) { if (Data.DisableTextFormattingOpenResponse == "1") { SelectDisableTextFormattingOpenResponseItems(); } } AnswerChoiceLayout.UserItemSettings.Click(); if (Data.EnableYes != null) { if (Data.EnableYes == "1") { SelectEnableManipulativesYes(); if (Data.Compass != null) { if (Data.Compass) { CheckCompass(); } } if (Data.CentimeterRuler != null) { if (Data.CentimeterRuler) { CheckCentimeterRuler(); } } if (Data.InchRuler != null) { if (Data.InchRuler) { CheckInchRuler(); } } if (Data.UnitRuler != null) { if (Data.UnitRuler) { CheckUnitRuler(); } } if (Data.Protractor != null) { if (Data.Protractor = true) { CheckProtractor(); } } } } else if (Data.EnableNo != null) { if (Data.EnableNo == "1") { SelectEnableManipulativesNo(); } } else { SelectEnableManipulativesUseItemSettings(); } ExpandTestItemSettings(); if (Data.StudentCommentEndOfTest) { CheckStudentCommentEndOfTest(); } TeacherCommentsNo.Wait(3).Click(); StudentSelfAssessmentNo.Click(); HideItemContentNo.Click(); }