/// <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> /// input rubric points /// </summary> /// <param name="points">the point value</param> public void InputRubricPoints() { for (int i = 0; i < Data.PointsValueList.Count; i++) { AttachRubric.GetItemFromWeightList(i).InputPoints(Data.PointsValueList[i]); } }
public void VerifyFieldsExist(List <ItemTypeOpenResponseFields> fields) { foreach (var field in fields) { if (field.Equals(ItemTypeOpenResponseFields.RubricWeightTable)) { AttachRubricPointsLineItem lineItem = AttachRubric.GetItemFromWeightList(0); Assert.IsNotNull(lineItem, "The rubric weight table was not found."); Report.Write("Found the rubric weight table."); } } }