public override void InputFormFields() { ItemPropertiesForm.InputFormFields(); StandardPopupDialog = ItemPropertiesForm.StandardLookup(); //StandardPickerForm.InputAndSubmitForm(); StandardPopupDialog.Data = Data.StandardPickerData; StandardPopupDialog.Form.InputAndSubmitForm(); ItemTypeForm.Data = Data.ItemTypeData; ItemTypeForm.QuestionAnswerDataObject = Data.QuestionAnswerData; ItemTypeForm.AutoItDataObject = Data.AutoItData; ItemTypeForm.InputFormFields(); }
public void InputFormFields_SelectStandard(string standardName) { StandardPopupDialog = ItemPropertiesForm.StandardLookup(); StandardPopupDialog.Data = Data.StandardPickerData; StandardPopupDialog.Form.SelectStandardDocument(); StandardPopupDialog.Form.SelectSubject(); StandardPopupDialog.Form.SelectGradeLevel(); StandardPopupDialog.Form.ExpandStandardInGroupById(Data.StandardPickerData.SelectedStandardsGroupData.StandardId); StandardPopupDialog.Form.SelectStandardInGroupByName(standardName); StandardPopupDialog.Form.SubmitForm(); this.DriverCommands.WaitAndMeasurePageLoadTime(); InitElements(); }
//implemented methods public override void InputFormFields() { ItemPropertiesForm.InputFormFields(); Scale.SelectByText(Data.Scale); foreach (var Group in RubricGroupList) { Group.InputFormFields(); Group.InputGroupLabel(); } foreach (var Column in RubricColumnList) { Column.InputFormFields(); } }
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); }
public override void InputFormFields() { ItemPropertiesForm.InputFormFields(); //if not a task item if (ItemTypeForm.GetType() != typeof(ItemTypeTaskForm)) { //then select a standard StandardPopupDialog = ItemPropertiesForm.StandardLookup(); StandardPopupDialog.Data = Data.StandardPickerData; StandardPopupDialog.Form.InputAndSubmitForm(); this.DriverCommands.WaitAndMeasurePageLoadTime(); InitElements(); ItemPropertiesForm.Data = Data.ItemTypeData; ItemPropertiesForm.AutoItDataObject = Data.AutoItData; } ItemTypeForm.Data = Data.ItemTypeData; ItemTypeForm.QuestionAnswerDataObject = Data.QuestionAnswerData; ItemTypeForm.AutoItDataObject = Data.AutoItData; ItemTypeForm.InputFormFields(); }
/// <summary> /// initialize elements /// </summary> public override void InitElements() { StandardControlsForm = new StandardControlsForm(PageNames.ItemCentral, ControlPrefix); ItemProperties = new ItemPropertiesForm(PageNames.ItemCentral, ControlPrefix); ItemStatistics = new ItemStatisticsForm(PageNames.ItemCentral, ControlPrefix); PassageProperties = new PassagePropertiesForm(PageNames.ItemCentral, ControlPrefix); SearchPassagesButton = new WebElementWrapper(BySearchPassagesButton); TextLink = new WebElementWrapper(ByTextLink); TextContainer = new WebElementWrapper(ByTextContainer); SearchText = new WebElementWrapper(BySearchText); StandardLink = new WebElementWrapper(ByStandardLink); StandardContainer = new WebElementWrapper(ByStandardContainer); ItemPropertiesLink = new WebElementWrapper(ByItemPropertiesLink); ItemPropertiesContainer = new WebElementWrapper(ByItemPropertiesContainer); ItemStatisticsLink = new WebElementWrapper(ByItemStatisticsLink); ItemStatisticsContainer = new WebElementWrapper(ByItemStatisticsContainer); PassagePropertiesLink = new WebElementWrapper(ByPassagePropertiesLink); PassagePropertiesContainer = new WebElementWrapper(ByPassagePropertiesContainer); PassageReadingLevelsLink = new WebElementWrapper(ByPassageReadingLevelsLink); PassageReadingLevelsContainer = new WebElementWrapper(ByPassageReadingLevelsContainer); }
public override void VerifyErrorsForRequiredFields() { ItemPropertiesForm.VerifyErrorsForRequiredFields(); ItemTypeForm.VerifyErrorsForRequiredFields(); /* * List<string> actualRequiredErrorsList = new List<string>(); * //get the error message element list * ReadOnlyCollection<IWebElement> messageElements = StepsToCompleteLabels.WaitForElements(5); * * if (Driver.GetType() == typeof(DummyDriver)) * { * messageElements = StandardPickerForm.GetDummyStepsToCompleteLabels(); * } * * //for each element in the list * foreach (var messageElement in messageElements) * { * //if the error message element is displayed * if (messageElement.Displayed) * { * string actualMessage = messageElement.Text; * //get the error message text and add it to the actual error message list * actualRequiredErrorsList.Add(actualMessage); * Debug.WriteLine("Actual required message: " + actualMessage); * } * } * //for each expected error message in the list * foreach (var expectedMessage in StandardPickerForm.ExpectedRequiredErrorsList) * { * //assert that the expected error message is found in the actual error message list * Assert.IsTrue(actualRequiredErrorsList.Contains(expectedMessage), * "The expected required message '" + expectedMessage + "' was not found in the actual required message list."); * } */ }
public void InputFormFields_ItemProperties() { ItemPropertiesForm.InputFormFields(); }
public override void VerifyFieldsListOfValues(List <string> includeFields) { ItemPropertiesForm.VerifyFieldsListOfValues(includeFields); }
public override void VerifyFieldsAreInvisible(List <string> includeFields) { ItemPropertiesForm.VerifyFieldsAreInvisible(includeFields); }
public override void VerifyFieldsAreDisabled(List <string> includeFields) { ItemPropertiesForm.VerifyFieldsAreDisabled(includeFields); }
public override void VerifyFieldsExist() { ItemPropertiesForm.VerifyFieldsExist(); ItemTypeForm.VerifyFieldsExist(); }
public override void InputAllFieldsExcept(List <string> excludeFields) { ItemPropertiesForm.InputAllFieldsExcept(excludeFields); }
/// <summary> /// initialize elements /// </summary> public override void InitElements() { switch (ItemType) { case ItemType.ClickStickClickDrop: ItemTypeForm = new ItemTypeDragDropForm(); break; case ItemType.DragAndDrop: ItemTypeForm = new ItemTypeDragDropForm(); break; case ItemType.Gridded: ItemTypeForm = new ItemTypeGriddedForm(); break; case ItemType.HotSpotMultipleSelection: //TODO not implemented break; case ItemType.HotSpotSingleSelection: //TODO not implemented break; case ItemType.InlineResponse: ItemTypeForm = new ItemTypeInlineResponseForm(); break; case ItemType.Matching: ItemTypeForm = new ItemTypeMatchingForm(); break; case ItemType.MultipleChoice: ItemTypeForm = new ItemTypeMultipleChoiceForm(); break; case ItemType.OpenResponse: ItemTypeForm = new ItemTypeOpenResponseForm(); break; case ItemType.Task: ItemTypeForm = new ItemTypeTaskForm(); break; case ItemType.TrueFalse: ItemTypeForm = new ItemTypeTrueFalseForm(); break; } /* DO NOT DELETE THIS SECTION - MARTIN * if (ItemTypeForm.GetType() == typeof(ItemTypeFormMultipleChoice)) * { * ItemTypeForm = new ItemTypeFormMultipleChoice(); * } * else if (ItemTypeForm.GetType() == typeof(ItemTypeFormTrueFalse)) * { * ItemTypeForm = new ItemTypeFormTrueFalse(); * } * else if (ItemTypeForm.GetType() == typeof(ItemTypeGriddedForm)) * { * ItemTypeForm = new ItemTypeGriddedForm(); * } * else if (ItemTypeForm.GetType() == typeof(ItemTypeOpenResponseForm)) * { * ItemTypeForm = new ItemTypeOpenResponseForm(); * } * else if (ItemTypeForm.GetType() == typeof(ItemTypeFormInlineResponse)) * { * ItemTypeForm = new ItemTypeFormInlineResponse(); * } * else if (ItemTypeForm.GetType() == typeof(ItemTypeFormMatching)) * { * ItemTypeForm = new ItemTypeFormMatching(); * } * else if (ItemTypeForm.GetType() == typeof(ItemTypeDragDropForm)) * { * ItemTypeForm = new ItemTypeDragDropForm(); * } */ ItemPropertiesForm = new ItemPropertiesForm(PageNames, ControlPrefix); //StandardPickerForm = new StandardPickerForm(PageNames, ControlPrefix); ChangeType_link = new WebElementWrapper(ByChangeType_link); // added by Oleg Feb 20, 2014 ChangeItemType_dropdown = new SelectElementWrapper(new WebElementWrapper(ByChangeItemType_dropdown)); // added by Oleg Feb 20, 2014 AddLink = new WebElementWrapper(ByAddLink); NewPassageLink = new WebElementWrapper(ByNewPassageLink); SearchForPassageLink = new WebElementWrapper(BySearchForPassageLink); EnterPassageTitleText = new WebElementWrapper(ByEnterPassageTitleText); DeletePassageButton = new WebElementWrapper(ByDeletePassageButton); EditPassageButton = new WebElementWrapper(ByEditPassageButton); PassageTitleLink = new WebElementWrapper(ByPassageTitleLink); CancelPassageTitleLink = new WebElementWrapper(ByCancelPassageTitleLink); SaveAndPreviewLink = new WebElementWrapper(BySaveAndPreviewLink); WithManipulativesLink = new WebElementWrapper(ByWithManipulativesLink); WithoutManipulativesLink = new WebElementWrapper(ByWithoutManipulativesLink); StepsToCompleteLabels = new WebElementWrapper(ByStepsToCompleteLabels); StepsCompletedLabel = new WebElementWrapper(ByStepsCompletedLabel); DeleteItemButton = new WebElementWrapper(ByDeleteItemButton); }
/// <summary> /// input form fields on item properties /// </summary> public void InputFormFields_ItemProperties() { ItemPropertiesForm.InputFormFields_EditQuestionPage(); }