/// <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>
 /// the constructor
 /// </summary>
 /// <param name="index">the index</param>
 /// <param name="stemContent">the question stem content</param>
 public QuestionLineItem(int index, string stemContent)
     : base()
 {
     Index       = index;
     StemContent = stemContent;
     StemSelect  = new SelectElementWrapper(new WebElementWrapper(ByStemSelect));
 }
Ejemplo n.º 3
0
        /// <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);
        }
Ejemplo n.º 4
0
        /// <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);
        }
Ejemplo n.º 5
0
 /// <summary>
 /// initialize elements
 /// </summary>
 public override void InitElements()
 {
     Editor = new Editor(PageNames.EditorPopup, this.ControlPrefix);
     EnableTextFormatting  = new EnableTextFormatting(PageNames.CreateNewItem, this.ControlPrefix);
     QuestionContent       = new WebElementWrapper(ByQuestionContent);
     QuestionContentReedit = new WebElementWrapper(ByQuestionContentReedit);
     ResponseTypeSelect    = new SelectElementWrapper(new WebElementWrapper(ByResponseTypeSelect));
     RubricButton          = new WebElementWrapper(ByRubricButton);
     //page is only initialized upon selecting button
     //AttachRubricDialog = new AttachRubricDialog();
     AttachRubric      = new AttachRubric();
     MaximumPointsText = new WebElementWrapper(ByMaximumPointsText);
     NumberOfAnswerSheetPagesSelect = new SelectElementWrapper(new WebElementWrapper(ByNumberOfAnswerSheetPagesSelect));
     ScoringInstructionsAddLabel    = new WebElementWrapper(ByScoringInstructionsAddLabel);
     ScoringInstructionsEditLabel   = new WebElementWrapper(ByScoringInstructionsEditLabel);
     ExemplarsAddLabel       = new WebElementWrapper(ByExemplarsAddLabel);
     ExemplarsEditLabel      = new WebElementWrapper(ByExemplarsEditLabel);
     ExemplarsUploadButton   = new WebElementWrapper(ByExemplarsUploadButton);
     StudentInstructionsText = new WebElementWrapper(ByStudentInstructionsText);
     //FormulaReferenceSheetButton = new WebElementWrapper(ByFormulaReferenceSheetButton);
     ExpectedRequiredErrorsList = new List <string>()
     {
         "Enter content"
     };
 }
 /// <summary>
 /// initialize elements
 /// </summary>
 public override void InitElements()
 {
     DepartmentDropdown = new SelectElementWrapper(new WebElementWrapper(ByDepartmentDropdown));
     CourseDropdown     = new SelectElementWrapper(new WebElementWrapper(ByCourseDropdown));
     TeacherDropdown    = new SelectElementWrapper(new WebElementWrapper(ByTeacherDropdown));
     SearchCriteria     = new AnswerSheetSearchCriteria();
 }
        /// <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);
            }
        }
Ejemplo n.º 8
0
 /// <summary>
 /// initialize elements
 /// </summary>
 public override void InitElements()
 {
     StartYourTestButton     = new WebElementWrapper(ByStartYourTestButton);
     WrongClassClickHereLink = new WebElementWrapper(ByWrongClassClickHereLink);
     ClassSectionSelect      = new SelectElementWrapper(new WebElementWrapper(ByClassSectionSelect));
     WrongTestClickHereLink  = new WebElementWrapper(ByWrongTestClickHereLink);
     PasscodeText            = new WebElementWrapper(ByPasscodeText);
 }
Ejemplo n.º 9
0
 /// <summary>
 /// initialize elements
 /// </summary>
 public override void InitElements()
 {
     RegionDropdown         = new SelectElementWrapper(new WebElementWrapper(ByRegionDropdown));
     SchoolTypeDropdown     = new SelectElementWrapper(new WebElementWrapper(BySchoolTypeDropdown));
     SchoolDropdown         = new SelectElementWrapper(new WebElementWrapper(BySchoolDropdown));
     GradeDropdown          = new SelectElementWrapper(new WebElementWrapper(ByGradeDropdown));
     IncludeSectionCheckbox = new WebElementWrapper(ByIncludeSectionCheckbox);
 }
Ejemplo n.º 10
0
 /// <summary>
 /// initialize elements
 /// </summary>
 public override void InitElements()
 {
     Description        = new WebElementWrapper(ByDescription);
     RemoveArrow        = new WebElementWrapper(ByRemoveArrow);
     AddArrow           = new WebElementWrapper(ByAddArrow);
     OperationAvailable = new SelectElementWrapper(new WebElementWrapper(ByOperationAvailable));
     OperationIncluded  = new SelectElementWrapper(new WebElementWrapper(ByOperationIncluded));
 }
 /// <summary>
 /// initialize elements
 /// </summary>
 public override void InitElements()
 {
     Region_dropdown                 = new SelectElementWrapper(new WebElementWrapper(ByRegion_dropdown));
     SchoolType_dropdown             = new SelectElementWrapper(new WebElementWrapper(BySchoolType_dropdown));
     AssignedSchoolName_chkbox       = new WebElementWrapper(ByAssignedSchoolName_chkbox);
     AvailableSchoolName_chkbox      = new WebElementWrapper(ByAvailableSchoolName_chkbox);
     AvailableFirstSchoolName_chkbox = new WebElementWrapper(ByAvailableFirstSchoolName_chkbox);
     ResultsPerPage_dropdown         = new SelectElementWrapper(new WebElementWrapper(ByResultsPerPage_dropdown));
 }
 /// <summary>
 /// initialize elements
 /// </summary>
 public override void InitElements()
 {
     Report.Write("Martin CreateTestManualForm.InitElements");
     base.InitElements();
     NumberOfItemsText       = new WebElementWrapper(ByNumberOfItemsText);
     AllMultipleChoiceButton = new WebElementWrapper(ByAllMultipleChoiceButton);
     DescriptionText         = new WebElementWrapper(ByDescriptionText);
     LinkToTestWindowSelect  = new SelectElementWrapper(new WebElementWrapper(ByLinkToTestWindowSelect));
 }
Ejemplo n.º 13
0
 /// <summary>
 /// initialize elements
 /// </summary>
 public override void InitElements()
 {
     FirstName_textbox               = new WebElementWrapper(ByFirstName_textbox);
     LastName_textbox                = new WebElementWrapper(ByLastName_textbox);
     Username_textbox                = new WebElementWrapper(ByUsername_textbox);
     Institution_dropdown            = new SelectElementWrapper(new WebElementWrapper(ByInstitution_dropdown));
     IncludeChildInstitutions_chkbox = new WebElementWrapper(ByIncludeChildInstitutions_chkbox);
     Role_dropdown = new SelectElementWrapper(new WebElementWrapper(ByRole_dropdown));
 }
 /// <summary>
 /// initialize elements
 /// </summary>
 public override void InitElements()
 {
     SetUniqueControlIdentifiers();
     Editor = new Editor(PageNames.EditorPopup, this.ControlPrefix);
     InteractionTab = new WebElementWrapper(ByInteractionTab());
     AddAnswerChoiceLink = new WebElementWrapper(ByAddAnswerChoiceLink);
     TargetContainerLabel = new WebElementWrapper(ByTargetContainerLabel);
     TargetContainerCapacityCheck = new WebElementWrapper(ByTargetContainerCapacityCheck);
     TargetContainerCapacitySelect = new SelectElementWrapper(new WebElementWrapper(ByTargetContainerCapacitySelect));
 }
Ejemplo n.º 15
0
 /// <summary>
 /// initialize elements
 /// </summary>
 public override void InitElements()
 {
     Show        = new SelectElementWrapper(new WebElementWrapper(ByShow));
     ShowFilters = new WebElementWrapper(ByShowFilters);
     HideFilters = new WebElementWrapper(ByHideFilters);
     GetGridLocator();
     GridELA      = new BenchmarkELAGrid(_gridELALocator, _gridELAIndex);
     SchoolYear   = new SelectElementWrapper(new WebElementWrapper(BySchoolYear));
     TestCategory = new SelectElementWrapper(new WebElementWrapper(ByTestCategory));
 }
Ejemplo n.º 16
0
 /// <summary>
 /// initialize elements
 /// </summary>
 public override void InitElements()
 {
     Applications_dropdown = new SelectElementWrapper(new WebElementWrapper(ByApplications_dropdown));
     //Go_button = new WebElementWrapper(Driver, ByGo_button);
     //AudioResponseCaptureEdit_image = new WebElementWrapper(Driver, ByAudioResponseCaptureEdit_image);
     //AudioResponseCaptureValue_textbox = new WebElementWrapper(Driver, ByAudioResponseCaptureValue_textbox);
     //AudioResponseCaptureSave_image = new WebElementWrapper(Driver, ByAudioResponseCaptureSave_image);
     Cache_tab = new WebElementWrapper(ByCache_tab);
     Grid      = new ConfigGrid(gridCssSelector, true, this.ControlPrefix);
 }
        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;
        }
Ejemplo n.º 18
0
 /// <summary>
 /// initialize elements
 /// </summary>
 public override void InitElements()
 {
     DisplayScoreGroupsCheck              = new WebElementWrapper(ByDisplayScoreGroupsCheck);
     ShowGPACheck                         = new WebElementWrapper(ByShowGPACheck);
     ShowCreditsEarnedCheck               = new WebElementWrapper(ByShowCreditsEarnedCheck);
     ShowCreditsAttemptedCheck            = new WebElementWrapper(ByShowCreditsAttemptedCheck);
     ShowStudentAttendanceCheck           = new WebElementWrapper(ByShowStudentAttendanceCheck);
     DisplaySchoolsStudentIsEnrolledCheck = new WebElementWrapper(ByDisplaySchoolsStudentIsEnrolledCheck);
     ShowAttendanceGroupCheck             = new WebElementWrapper(ByShowAttendanceGroupCheck);
     ShowSecondaryStudentIDSelect         = new SelectElementWrapper(new WebElementWrapper(ByShowSecondaryStudentIDSelect));
 }
Ejemplo n.º 19
0
 /// <summary>
 /// constructor
 /// </summary>
 /// <param name="uniqueId"></param>
 /// <param name="itemType"></param>
 /// <param name="overrideControlPrefix"></param>
 public QuestionAnswerPair(string uniqueId, ItemType itemType, string overrideControlPrefix = null)
     : base()
 {
     this.UniqueId = uniqueId;
     this.ItemType = itemType;
     if (overrideControlPrefix != null)
     {
         this.ControlPrefix = overrideControlPrefix;
     }
     Stem   = new SelectElementWrapper(new WebElementWrapper(ByStem));
     Choice = new SelectElementWrapper(new WebElementWrapper(ByChoice));
 }
Ejemplo n.º 20
0
        /// <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;
        }
Ejemplo n.º 21
0
 /// <summary>
 /// constructor
 /// </summary>
 /// <param name="pageName">page names</param>
 /// <param name="overrideControlPrefix">override control prefix</param>
 public SubjectElement(PageNames pageName, string overrideControlPrefix = null)
     : base()
 {
     this.pageName = pageName;
     if (overrideControlPrefix != null)
     {
         prefix = overrideControlPrefix;
     }
     else
     {
         prefix = "ctl00_MainContent_";
     }
     SelectElement = new SelectElementWrapper(new WebElementWrapper(getBy()));
 }
 /// <summary>
 /// constructor
 /// </summary>
 /// <param name="pageName">page names</param>
 /// <param name="overrideControlPrefix">override control prefix</param>
 public GradeLevelElement(PageNames pageName, string overrideControlPrefix = null)
     : base()
 {
     this.pageName = pageName;
     if (overrideControlPrefix != null)
     {
         prefix = overrideControlPrefix;
     }
     else
     {
         prefix = "ctl00_MainContent_";
     }
     FromSelectElement = new SelectElementWrapper(new WebElementWrapper(getByFrom()));
     ToSelectElement   = new SelectElementWrapper(new WebElementWrapper(getByTo()));
 }
        public override void InitElements()
        {
            RubricColumnList = new List <RubricColumn>();
            CreateAColumn();
            CreateAColumn();
            CreateAColumn();

            RubricGroupList = new List <RubricGroupLevel>();
            CreateARubricGroup();

            ItemPropertiesForm = new ItemPropertiesForm(PageNames.EditRubric);
            Scale           = new SelectElementWrapper(new WebElementWrapper(ByScaleDropdown));
            AddColumnButton = new WebElementWrapper(ByAddColumnButton);
            AddGroupButton  = new WebElementWrapper(ByAddGroupButton);
            Delete          = new WebElementWrapper(ByDelete);
        }
Ejemplo n.º 24
0
        public override void InitElements()
        {
            switch (ItemCentralType)
            {
            case ItemCentralType.Item:
                //ctl00_MainContent_ItemFinder1_ItemFinderResults1_btnAddToTest1
                //ctl00_MainContent_ItemFinder1_ItemFinderResults1_gridResults
                ControlMiddle = "ItemFinderResults1_";
                break;

            case ItemCentralType.Passage:
                //ctl00_MainContent_ItemFinder1_PassageFinderResults1_btnAddToTest1
                //ctl00_MainContent_ItemFinder1_PassageFinderResults1_gridResults
                ControlMiddle = "PassageFinderResults1_";
                break;

            case ItemCentralType.Rubric:
                //ctl00_MainContent_ItemFinder1_PassageFinderResults1_btnAddToTest1
                //ctl00_MainContent_RubricFinder1_RubricFinderResults1_gridResults
                ControlMiddle = "RubricFinderResults1_";
                break;
            }
            ExportButton = new WebElementWrapper(ByExportButton);
            ExportSelectedItemsTopLink                            = new WebElementWrapper(ByExportSelectedItemsTopLink);
            ExportSelectedItemsBottomLink                         = new WebElementWrapper(ByExportSelectedItemsBottomLink);
            ExportAllSearchResultItemsTopLink                     = new WebElementWrapper(ByExportAllSearchResultItemsTopLink);
            ExportAllSearchResultItemsBottomLink                  = new WebElementWrapper(ByExportAllSearchResultItemsBottomLink);
            RequestApprovalSelectedItemsStateUseTopLink           = new WebElementWrapper(ByRequestApprovalSelectedItemsStateUseTopLink);
            RequestApprovalSelectedItemsStateUseBottomLink        = new WebElementWrapper(ByRequestApprovalSelectedItemsStateUseBottomLink);
            RequestApprovalAllSearchResultItemsStateUseTopLink    = new WebElementWrapper(ByRequestApprovalAllSearchResultItemsStateUseTopLink);
            RequestApprovalAllSearchResultItemsStateUseBottomLink = new WebElementWrapper(ByRequestApprovalAllSearchResultItemsStateUseBottomLink);
            SelectAllLink            = new WebElementWrapper(BySelectAllLink);
            ClearLink                = new WebElementWrapper(ByClearLink);
            AddItemsToTestTopLink    = new WebElementWrapper(ByAddItemsToTestTopLink);
            AddItemsToTestBottomLink = new WebElementWrapper(ByAddItemsToTestBottomLink);
            SearchResultsGrid        = new WebElementWrapper(BySearchResultsGrid);
            SearchResultsRows        = new WebElementWrapper(BySearchResultsRows);
            NoItemsFoundLabel        = new WebElementWrapper(ByNoItemsFoundLabel);
            PreviousPage             = new WebElementWrapper(ByPreviousPage);
            NextPage        = new WebElementWrapper(ByNextPage);
            LastPage        = new WebElementWrapper(ByLastPage);
            PageResultLabel = new WebElementWrapper(ByPageResultLabel);
            ResultPerPage   = new SelectElementWrapper(new WebElementWrapper(ByResultPerPage));
            SortBy          = new SelectElementWrapper(new WebElementWrapper(BySortBy));
            //generates a list on page load
            SetItemCentralResultList();
        }
        /// <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>
 /// the constructor
 /// </summary>
 /// <param name="label">the label</param>
 /// <param name="index">the index</param>
 /// <param name="uniqueId">the unique ID</param>
 /// <param name="contentType">the content type</param>
 /// <param name="itemType">the item type</param>
 /// <param name="overrideControlPrefix">override control prefix</param>
 public QuestionAnswerContent(string label, int index, string uniqueId, ContentType contentType, ItemType itemType, string overrideControlPrefix = null)
     : base()
 {
     this.Label       = label;
     this.Index       = index;
     this.UniqueId    = uniqueId;
     this.ContentType = contentType;
     this.ItemType    = itemType;
     if (overrideControlPrefix != null)
     {
         this.ControlPrefix = overrideControlPrefix;
     }
     ContentLabel          = new WebElementWrapper(ByContentLabel());
     ContentAdd            = new WebElementWrapper(ByContentAdd());
     ContentEdit           = new WebElementWrapper(ByContentEdit());
     ContentRemove         = new WebElementWrapper(ByContentRemove());
     ChoiceCanBeUsedSelect = new SelectElementWrapper(new WebElementWrapper(ByChoiceCanBeUsedSelect()));
 }
Ejemplo n.º 27
0
        /// <summary>
        /// initialize elements
        /// </summary>
        public override void InitElements()
        {
            switch (PageName)
            {
            case PageNames.CreateNewItem:
                //ctl00_MainContent_StandardsQuickPicker_ddlStandardDoc
                //ctl00_MainContent_StandardsQuickPicker_AutoCompleteStandard
                //ctl00_MainContent_StandardsQuickPicker_btnStandards
                ControlMiddle = "";
                break;

            case PageNames.EditTestItem:
                //ctl00_MainContent_StandardsQuickPicker_ddlStandardDoc
                //ctl00_MainContent_StandardsQuickPicker_AutoCompleteStandard
                //ctl00_MainContent_StandardsQuickPicker_btnStandards
                ControlMiddle = "";
                break;

            case PageNames.EditQuestion:
                //ctl00_MainContent_StandardsQuickPicker_ddlStandardDoc
                //ctl00_MainContent_StandardsQuickPicker_AutoCompleteStandard
                //ctl00_MainContent_StandardsQuickPicker_btnStandards
                ControlMiddle = "";
                break;

            case PageNames.ItemCentral:
                //ctl00_MainContent_ItemFinder1_ItemFinderSearch1_StandardsQuickPicker_ddlStandardDoc
                //ctl00_MainContent_ItemFinder1_ItemFinderSearch1_StandardsQuickPicker_AutoCompleteStandard
                //ctl00_MainContent_ItemFinder1_ItemFinderSearch1_StandardsQuickPicker_btnStandards
                ControlMiddle = "ItemFinder1_ItemFinderSearch1_StandardsQuickPicker_";
                break;

            case PageNames.EditRubric:
                //ctl00_MainContent_ctl00_EditRubricStandardControl_rptRubricStandardHeader_ctl00_rptRubricStandard_ctl00_RubricStandardPicker_btnStandards
                ControlMiddle = "ctl00_EditRubricStandardControl_rptRubricStandardHeader_";
                break;
            }
            StandardSelect       = new SelectElementWrapper(new WebElementWrapper(ByStandardSelect));
            StandardNameText     = new WebElementWrapper(ByStandardNameText);
            EditStandardLink     = new WebElementWrapper(ByEditStandardLinkLocator());
            StandardLookupButton = new WebElementWrapper(ByStandardLookupButton());
        }
Ejemplo n.º 28
0
        private void ParseSelectElement(SelectElementWrapper result,
                                        string spText, StoredProcedureReport spReport)
        {
            var valueName =
                spText.Substring(result.SelectElementHolder.StartOffset,
                                 result.SelectElementHolder.FragmentLength);

            valueName =
                valueName
                .Replace("\r", " ")
                .Replace("\n", " ")
                .Replace("\t", " ");

            valueName =
                Regex.Replace(valueName, @"\s+", " ");

            var entry =
                new ReturnSqlReportEntry(valueName, result.QueryExpressionId,
                                         result.IsLiteral, result.ColumnName);

            spReport.ReturnValues.Add(entry);
        }
 /// <summary>
 /// initialize elements
 /// </summary>
 public override void InitElements()
 {
     Editor                                  = new Editor(PageNames.EditorPopup, this.ControlPrefix);
     QuestionContent                         = new WebElementWrapper(ByQuestionContent);
     QuestionContentReedit                   = new WebElementWrapper(ByQuestionContentReedit);
     NumberOfAnswerColumnsSelect             = new SelectElementWrapper(new WebElementWrapper(ByNumberOfAnswerColumnsSelect));
     CorrectAnswerText                       = new WebElementWrapper(ByCorrectAnswerText);
     PointsText                              = new WebElementWrapper(ByPointsText);
     AnswerEachDigitInMathematicalPlaceCheck = new WebElementWrapper(ByAnswerEachDigitInMathematicalPlaceCheck);
     PrePopulateDecimalPointCheck            = new WebElementWrapper(ByPrePopulateDecimalPointCheck);
     PrePopulateDecimalPointSelect           = new SelectElementWrapper(new WebElementWrapper(ByPrePopulateDecimalPointSelect));
     AnswerExactlyAsShownCheck               = new WebElementWrapper(ByAnswerExactlyAsShownCheck);
     ShowNegativeSignCheck                   = new WebElementWrapper(ByShowNegativeSignCheck);
     ShowFractionCheck                       = new WebElementWrapper(ByShowFractionCheck);
     ShowDecimalPointCheck                   = new WebElementWrapper(ByShowDecimalPointCheck);
     ExpectedRequiredErrorsList              = new List <string>()
     {
         "Enter content",
         "Select correct answer",
         "Not worth any points"
     };
 }
 public override void InitElements()
 {
     GridIdentifier  = new WebElementWrapper(ByGridIdentifier);
     Columns         = new WebElementWrapper(ByColumns);
     HeaderRow       = new WebElementWrapper(ByHeaderRow);
     Rows            = new WebElementWrapper(ByRows);
     PaginationRows  = new WebElementWrapper(ByPaginationRows);
     PaginationLinks = new WebElementWrapper(ByPaginationLinks);
     if (InitializeGrid)
     {
         SetGridLists();
     }
     ResultsLabel         = new WebElementWrapper(ByResultsLabel);
     ResultsPerPageSelect = new SelectElementWrapper(new WebElementWrapper(ByResultsPerPageSelect));
     FirstTopLink         = new WebElementWrapper(ByFirstTopLink);
     PreviousTopLink      = new WebElementWrapper(ByPreviousTopLink);
     NextTopLink          = new WebElementWrapper(ByNextTopLink);
     LastTopLink          = new WebElementWrapper(ByLastTopLink);
     FirstBottomLink      = new WebElementWrapper(ByFirstBottomLink);
     PreviousBottomLink   = new WebElementWrapper(ByPreviousBottomLink);
     NextBottomLink       = new WebElementWrapper(ByNextBottomLink);
     LastBottomLink       = new WebElementWrapper(ByLastBottomLink);
 }