/// <summary> /// edit question page select standard using edit link. This link is above the /// standard lookup button /// <param name="standardDoc">example...Ohio English Language Arts 2003</param> /// <param name="standardName">example...LA.1.R.1: Reading / Phonemic Awareness, Word Recognition and Fluency</param> /// </summary> /// <remarks>requires the EditQuestionCreateNewItemPage to be initialized in this class</remarks> /// <returns>Workflows</returns> public CreateItemWorkflows EditQuestionCreateNewItemPageInputFormFields_SelectStandardUsingEditLink(string standardDoc, string standardName) { if (AssessWorkflows.EditQuestionCreateNewItemPage == null) { throw new Exception("The EditQuestionCreateNewItemPage is null, please initialize it before trying to use it in a workflow."); } EditQuestionCreateNewItemForm form = AssessWorkflows.EditQuestionCreateNewItemPage.Form; form.ItemPropertiesForm.SelectEditStandard(); StandardControlsForm standardControls = new StandardControlsForm(PageNames.EditTestItem); standardControls.SelectStandard(standardDoc, standardName); return(this); }
/// <summary> /// edit question page select standard /// - expand the parent standard group, look up from Data. /// - select the standard based on the standardName. For example: /// LA.9.R.2: Reading / Acquisition of Vocabulary /// LA.9.R.2.A: Use context clues and text structures to determine the meaning of new vocabulary. /// LA.9.R.2.A.1: Contextual Understanding cause and effect /// LA.9.R.2.B: Examine the relationships of analogical statements to infer word meanings. /// LA.9.R.3: Reading / Reading Process: Self-Monitoring Strategies /// /// if standardName equal "LA.9.R.2.A", then "LA.9.R.2.A: Use context clues ..." is selected /// </summary> /// <remarks>requires the EditQuestionCreateNewItemPage to be initialized in this class</remarks> /// <returns>Workflows</returns> public CreateItemWorkflows EditQuestionCreateNewItemPageInputFormFields_SelectStandard(string standardName) { if (AssessWorkflows.EditQuestionCreateNewItemPage == null) { throw new Exception("The EditQuestionCreateNewItemPage is null, please initialize it before trying to use it in a workflow."); } EditQuestionCreateNewItemForm form = AssessWorkflows.EditQuestionCreateNewItemPage.Form; form.StandardPopupDialog = form.ItemPropertiesForm.StandardLookup(); StandardPickerData data = ((EditPageData)AssessWorkflows.EditQuestionCreateNewItemPage.Data).StandardPickerData; form.StandardPopupDialog.Data = data; form.StandardPopupDialog.Form.ExpandStandardInGroupById(data.SelectedStandardsGroupData.StandardId); if (Driver.WrappedDriver.GetType() == typeof(DummyDriver)) { form.StandardPopupDialog.Form.FakeText = standardName; } form.StandardPopupDialog.Form.SelectStandardInGroupByName(standardName); form.StandardPopupDialog.Form.SubmitForm(); form.Parent.WaitForPageToLoad(); form.InitElements(); return(this); }