/// <summary> /// initialize elements /// </summary> public override void InitElements() { SubjectElement subject = new SubjectElement(PageNames.TestCentralHome); SubjectSelect = subject.SelectElement; GradeLevelElement gradeLevel = new GradeLevelElement(PageNames.TestCentralHome); GradeFromSelect = gradeLevel.FromSelectElement; GradeToSelect = gradeLevel.ToSelectElement; TestNameId = new WebElementWrapper(ByTestNameId); PrivateDraft = new WebElementWrapper(ByPrivateDraft); Scheduled = new WebElementWrapper(ByScheduled); PublicDraft = new WebElementWrapper(ByPublicDraft); InProgress = new WebElementWrapper(ByInProgress); Ready = new WebElementWrapper(ByReady); Completed = new WebElementWrapper(ByCompleted); AdvancedBasicSearchLink = new WebElementWrapper(ByAdvancedBasicSearchLink); DataCollectionStatus = new SelectElementWrapper(new WebElementWrapper(ByDataCollectionStatus)); TestContent = new WebElementWrapper(ByTestContent); TestCreatorFirstname = new WebElementWrapper(ByTestCreatorFirstname); TestCreatorLastname = new WebElementWrapper(ByTestCreatorLastname); StandardSet = new SelectElementWrapper(new WebElementWrapper(ByStandardSet)); Institution = new WebElementWrapper(ByInstitution); TestCategory = new SelectElementWrapper(new WebElementWrapper(ByTestCategory)); AdaptiveTests = new SelectElementWrapper(new WebElementWrapper(ByAdaptiveTests)); Publisher = new WebElementWrapper(ByPublisher); ExternalTestId = new WebElementWrapper(ByExternalTestId); IncludePersonalTests = new WebElementWrapper(ByIncludePersonalTests); }
/// <summary> /// initialize elements /// </summary> public override void InitElements() { SubjectElement subject = new SubjectElement(PageNames.CreatePassage); SubjectSelect = subject.SelectElement; GradeLevelElement gradeLevel = new GradeLevelElement(PageNames.CreatePassage); GradeFromSelect = gradeLevel.FromSelectElement; GradeToSelect = gradeLevel.ToSelectElement; TeacherInstructionEditor = new TeacherInstructionEditor(PageNames.CreatePassage); Title_textbox = new WebElementWrapper(ByTitle_textbox); OptionalProperties_link = new WebElementWrapper(ByOptionalProperties_link); OptionalProperties_icon = new WebElementWrapper(ByOptionalProperties_icon); AdditionalPassageID_textbox = new WebElementWrapper(ByAdditionalPassageID_textbox); AssetType_textbox = new WebElementWrapper(ByAssetType_textbox); Author_textbox = new WebElementWrapper(ByAuthor_textbox); CourseID_textbox = new WebElementWrapper(ByCourseID_textbox); FleschKincaid_textbox = new WebElementWrapper(ByFleschKincaid_textbox); Genre_textbox = new WebElementWrapper(ByGenre_textbox); QuestionLanguage_dropdown = new SelectElementWrapper(new WebElementWrapper(ByQuestionLanguage_dropdown)); LexileCode_dropdown = new SelectElementWrapper(new WebElementWrapper(ByLexileCode_dropdown)); Lexile_textbox = new WebElementWrapper(ByLexile_textbox); BeginningReader_chkbox = new WebElementWrapper(ByBeginningReader_chkbox); Publisher_textbox = new WebElementWrapper(ByPublisher_textbox); ReadingMaturityMetric_textbox = new WebElementWrapper(ByReadingMaturityMetric_textbox); Topic_textbox = new WebElementWrapper(ByTopic_textbox); Type_dropdown = new SelectElementWrapper(new WebElementWrapper(ByType_dropdown)); Year_textbox = new WebElementWrapper(ByYear_textbox); Batch_textbox = new WebElementWrapper(ByBatch_textbox); TeacherInstruction = new TeacherInstruction(PageNames.CreatePassage); Editor = new Editor(PageNames.CreatePassage, this.ControlPrefix); PortraitLayout = new WebElementWrapper(ByPortraitLayout); LandscapeLayout = new WebElementWrapper(ByLandscapeLayout); }
/// <summary> /// initialize elements /// </summary> public override void InitElements() { TestPropertiesLink = new WebElementWrapper(ByTestPropertiesLink); EditPropertiesLink = new WebElementWrapper(ByEditPropertiesLink); //label fields UseEnableToolsManipulativesLabel = new WebElementWrapper(ByUseEnableToolsManipulativesLabel); //editable fields SubjectElement subject = new SubjectElement(PageNames.ViewTestDetailsTestProperties); SubjectSelect = subject.SelectElement; GradeLevelElement gradeLevel = new GradeLevelElement(PageNames.ViewTestDetailsTestProperties); GradeFromSelect = gradeLevel.FromSelectElement; GradeToSelect = gradeLevel.ToSelectElement; InstitutionSource = new WebElementWrapper(ByInstitutionSource); TestCategory = new SelectElementWrapper(new WebElementWrapper(ByTestCategory)); ScoreType = new SelectElementWrapper(new WebElementWrapper(ByScoreType)); PreferredStandardsDocument = new SelectElementWrapper(new WebElementWrapper(ByPreferredStandardsDocument)); DescriptionText = new WebElementWrapper(ByDescriptionText); TestCreatorText = new WebElementWrapper(ByTestCreatorText); EnableTextFormatting = new EnableTextFormatting(PageNames.ViewTestDetailsTestProperties, this.ControlPrefix); AnswerChoiceLayout = new AnswerChoiceLayout(PageNames.ViewTestDetailsTestProperties, this.ControlPrefix); EnableToolsManipulatives = new EnableToolsManipulatives(PageNames.ViewTestDetailsTestProperties, this.ControlPrefix); StudentCommentEndOfTest = new WebElementWrapper(ByStudentCommentEndOfTest); StudentCommentEachItem = new WebElementWrapper(ByStudentCommentEachItem); TeacherCommentsYes = new WebElementWrapper(ByTeacherCommentsYes); TeacherCommentsNo = new WebElementWrapper(ByTeacherCommentsNo); StudentSelfAssessmentYes = new WebElementWrapper(ByStudentSelfAssessmentYes); StudentSelfAssessmentNo = new WebElementWrapper(ByStudentSelfAssessmentNo); HideItemContentYes = new WebElementWrapper(ByHideItemContentYes); HideItemContentNo = new WebElementWrapper(ByHideItemContentNo); CancelButton = new WebElementWrapper(ByCancelButton); SubmitButton = new WebElementWrapper(BySubmitButton); }
/// <summary> /// initialize elements /// </summary> public override void InitElements() { GradeLevelElement gradeLevel = new GradeLevelElement(PageNames.EditAssignmentCourse); GradeFromSelect = gradeLevel.FromSelectElement; GradeToSelect = gradeLevel.ToSelectElement; Course_textbox = new WebElementWrapper(ByCourse_textbox); Department_dropdown = new SelectElementWrapper(new WebElementWrapper(ByDepartment_dropdown)); //Go_button = new WebElementWrapper(ByGo_button); //LimitBySchools_button = new WebElementWrapper(ByLimitBySchools_button); AssignedCourseName_chkbox = new WebElementWrapper(ByAssignedCourseName_chkbox); AvailableCourseName_chkbox = new WebElementWrapper(ByAvailableCourseName_chkbox); NextPage = new WebElementWrapper(ByNextPage); Report.Write("Attempting to initialize Choose Course Grid component."); if (IsChooseCourseGridDisplay()) { ChooseCourseGrid = new EditAssignmentCourseGrid(ChooseGridLocator, false); Report.Write("Initialize Choose Course Grid component success."); } else { Report.Write("Initialize Choose Course Grid component failed."); } try { //Sometimes the page will not have Selected Course grid display. //Sometimes the page display warning message, but not grid. //If the grid is not display, the test should continue to run. Not a failure for this page. //Check to see if the grid is display first before initializing the grid. By ByGrid = By.CssSelector(SelectedGridLocator); WebElementWrapper Grid = new WebElementWrapper(ByGrid); Grid.Wait(3); try { //The grid was found. Check to see if warning message is display SelectedCourseWarning = new WebElementWrapper(BySelectedCourseWarning); SelectedCourseWarning.Wait(3); Report.Write("The Selected Course Grid warning message: " + BySelectedCourseWarning.ToString() + " was found."); } catch (Exception) { //The grid was found. ChooseCourseWarning message is not display. SelectedCourseGrid = new EditAssignmentCourseGrid(SelectedGridLocator, false); } } catch { Report.Write("The Selected Course Grid: ByCssSelector: " + SelectedGridLocator + " was not found."); } if (Driver.WrappedDriver.GetType() == typeof(DummyDriver)) { ChooseCourseGrid = new EditAssignmentCourseGrid(ChooseGridLocator, true); SelectedCourseGrid = new EditAssignmentCourseGrid(SelectedGridLocator, true); } }
public override void InitElements() { TestCategoriesSelect = new SelectElementWrapper(new WebElementWrapper(ByTestCategoriesSelect)); SubjectElement subject = new SubjectElement(PageNames.TeacherAssessDashboard); SubjectSelect = subject.SelectElement; GradeLevelElement gradeLevel = new GradeLevelElement(PageNames.TeacherAssessDashboard); GradeFromSelect = gradeLevel.FromSelectElement; GradeToSelect = gradeLevel.ToSelectElement; }
/// <summary> /// intialize elements /// </summary> public override void InitElements() { TestCentralLink = new WebElementWrapper(ByTestCentralLink); TestId = new WebElementWrapper(ByTestId); RecentlyViewedTests = new SelectElementWrapper(new WebElementWrapper(ByRecentlyViewedTests)); SubjectElement subject = new SubjectElement(PageNames.AssessDashboard); SubjectSelect = subject.SelectElement; GradeLevelElement gradeLevel = new GradeLevelElement(PageNames.AssessDashboard); GradeFromSelect = gradeLevel.FromSelectElement; GradeToSelect = gradeLevel.ToSelectElement; }
/// <summary> /// initialize elements /// </summary> public override void InitElements() { //Subject = new Subject(PageNames.TestWindowViewTestWindow); //GradeLevel = new GradeLevel(PageNames.TestWindowViewTestWindow, this.ControlPrefix); SubjectElement subject = new SubjectElement(PageNames.TestWindowViewTestWindow); SubjectSelect = subject.SelectElement; GradeLevelElement gradeLevel = new GradeLevelElement(PageNames.TestWindowViewTestWindow); GradeFromSelect = gradeLevel.FromSelectElement; GradeToSelect = gradeLevel.ToSelectElement; TestWindowName = new WebElementWrapper(ByTestWindowName); DateFrom = new WebElementWrapper(ByDateFrom); DateTo = new WebElementWrapper(ByDateTo); Grid = new PlanHomeGrid(GridLocator); }
/// <summary> /// initialize elements /// </summary> public override void InitElements() { //Subject = new Subject(PageNames.TestWindowCreateEditTestWindow); //GradeLevel = new GradeLevel(PageNames.TestWindowCreateEditTestWindow, this.ControlPrefix); SubjectElement subject = new SubjectElement(PageNames.TestWindowCreateEditTestWindow); SubjectSelect = subject.SelectElement; GradeLevelElement gradeLevel = new GradeLevelElement(PageNames.TestWindowCreateEditTestWindow); GradeFromSelect = gradeLevel.FromSelectElement; GradeToSelect = gradeLevel.ToSelectElement; TestWindowName = new WebElementWrapper(ByTestWindowName); DateFrom = new WebElementWrapper(ByDateFrom); DateTo = new WebElementWrapper(ByDateTo); Description = new WebElementWrapper(ByDescription); }
/// <summary> /// initialize elements /// </summary> public override void InitElements() { Report.Write("Martin CreateTestForm.InitElements"); SubjectElement subject = new SubjectElement(PageNames.CreateTest); SubjectSelect = subject.SelectElement; GradeLevelElement gradeLevel = new GradeLevelElement(PageNames.CreateTest); GradeFromSelect = gradeLevel.FromSelectElement; GradeToSelect = gradeLevel.ToSelectElement; TestId = new TestId(PageNames.CreateTest, this.ControlPrefix); InstitutionSource = new WebElementWrapper(ByInstitutionSource); TestCategory = new SelectElementWrapper(new WebElementWrapper(ByTestCategory)); UnansweredQuestions = new SelectElementWrapper(new WebElementWrapper(ByUnansweredQuestions)); ScoreType = new SelectElementWrapper(new WebElementWrapper(ByScoreType)); TestFocusELA = new WebElementWrapper(ByTestFocusELA); TestFocusReading = new WebElementWrapper(ByTestFocusReading); TestFocusWriting = new WebElementWrapper(ByTestFocusWriting); PreferredStandardsDocument = new SelectElementWrapper(new WebElementWrapper(ByPreferredStandardsDocument)); AnswerKeyOnlyYes = new WebElementWrapper(ByAnswerKeyOnlyYes); AnswerKeyOnlyNo = new WebElementWrapper(ByAnswerKeyOnlyNo); EnableTextFormatting = new EnableTextFormatting(PageNames.CreateTest, this.ControlPrefix); AnswerChoiceLayout = new AnswerChoiceLayout(PageNames.CreateTest, this.ControlPrefix); EnableToolsManipulatives = new EnableToolsManipulatives(PageNames.CreateTest, this.ControlPrefix); StudentCommentEndOfTest = new WebElementWrapper(ByStudentCommentEndOfTest); StudentCommentEachItem = new WebElementWrapper(ByStudentCommentEachItem); TeacherCommentsYes = new WebElementWrapper(ByTeacherCommentsYes); TeacherCommentsNo = new WebElementWrapper(ByTeacherCommentsNo); StudentSelfAssessmentYes = new WebElementWrapper(ByStudentSelfAssessmentYes); StudentSelfAssessmentNo = new WebElementWrapper(ByStudentSelfAssessmentNo); HideItemContentYes = new WebElementWrapper(ByHideItemContentYes); HideItemContentNo = new WebElementWrapper(ByHideItemContentNo); InitialItemSettingsLink = new WebElementWrapper(ByInitialItemSettingsLink); InitialItemSettingsContainer = new WebElementWrapper(ByInitialItemSettingsContainer); InitialItemSettingsExpandArrow = new WebElementWrapper(ByInitialItemSettingsExpandArrow); TestItemSettingsLink = new WebElementWrapper(ByTestItemSettingsLink); TestItemSettingsContainer = new WebElementWrapper(ByTestItemSettingsContainer); OptionalLink = new WebElementWrapper(ByOptionalLink); OptionalContainer = new WebElementWrapper(ByOptionalContainer); }
/// <summary> /// initialize elements /// </summary> public override void InitElements() { TestNameId = new WebElementWrapper(ByTestNameId); SubjectElement subject = new SubjectElement(PageNames.ViewPortalResults); SubjectSelect = subject.SelectElement; GradeLevelElement gradeLevel = new GradeLevelElement(PageNames.ViewPortalResults); GradeFromSelect = gradeLevel.FromSelectElement; GradeToSelect = gradeLevel.ToSelectElement; AdminDateRangeFrom = new WebElementWrapper(ByAdminDateRangeFrom); AdminDateRangeTo = new WebElementWrapper(ByAdminDateRangeTo); switch (GridName) { case ViewPortalResultsGridNames.MyTests: if (isAdvancedSearchExpanded) { BasicSearchLink = new WebElementWrapper(ByBasicSearchLink); DataCollectionStatus = new SelectElementWrapper(new WebElementWrapper(ByDataCollectionStatus)); TestContent = new WebElementWrapper(ByTestContent); StandardSet = new SelectElementWrapper(new WebElementWrapper(ByStandardSet)); AdaptiveTests = new SelectElementWrapper(new WebElementWrapper(ByAdaptiveTests)); } else { AdvancedSearchLink = new WebElementWrapper(ByAdvancedSearchLink); } break; case ViewPortalResultsGridNames.InProgressTests: if (isAdvancedSearchExpanded) { BasicSearchLink = new WebElementWrapper(ByBasicSearchLink); TestContent = new WebElementWrapper(ByTestContent); TestCreatorFirstName = new WebElementWrapper(ByTestCreatorFirstName); TestCreatorLastName = new WebElementWrapper(ByTestCreatorLastName); StandardSet = new SelectElementWrapper(new WebElementWrapper(ByStandardSet)); AdaptiveTests = new SelectElementWrapper(new WebElementWrapper(ByAdaptiveTests)); } else { AdvancedSearchLink = new WebElementWrapper(ByAdvancedSearchLink); DataCollectionStatus = new SelectElementWrapper(new WebElementWrapper(ByDataCollectionStatus)); } break; case ViewPortalResultsGridNames.ScheduledTests: if (isAdvancedSearchExpanded) { BasicSearchLink = new WebElementWrapper(ByBasicSearchLink); DataCollectionStatus = new SelectElementWrapper(new WebElementWrapper(ByDataCollectionStatus)); TestContent = new WebElementWrapper(ByTestContent); TestCreatorFirstName = new WebElementWrapper(ByTestCreatorFirstName); TestCreatorLastName = new WebElementWrapper(ByTestCreatorLastName); StandardSet = new SelectElementWrapper(new WebElementWrapper(ByStandardSet)); AdaptiveTests = new SelectElementWrapper(new WebElementWrapper(ByAdaptiveTests)); } else { AdvancedSearchLink = new WebElementWrapper(ByAdvancedSearchLink); } break; case ViewPortalResultsGridNames.RecommendedTests: if (isAdvancedSearchExpanded) { BasicSearchLink = new WebElementWrapper(ByBasicSearchLink); TestContent = new WebElementWrapper(ByTestContent); TestCreatorFirstName = new WebElementWrapper(ByTestCreatorFirstName); TestCreatorLastName = new WebElementWrapper(ByTestCreatorLastName); StandardSet = new SelectElementWrapper(new WebElementWrapper(ByStandardSet)); TestCategory = new SelectElementWrapper(new WebElementWrapper(ByTestCategory)); AdaptiveTests = new SelectElementWrapper(new WebElementWrapper(ByAdaptiveTests)); } else { AdvancedSearchLink = new WebElementWrapper(ByAdvancedSearchLink); TestCategory = new SelectElementWrapper(new WebElementWrapper(ByTestCategory)); } break; default: throw new ArgumentOutOfRangeException(); } }