/// <summary> /// Add Local Question to Step /// </summary> /// <param name="_driver">IWebDriver</param> public void AddQuestionToStep(IWebDriver _driver, string ConfigKey, string Sheet) { AddQuestiontoStepPage AQS = new AddQuestiontoStepPage(_driver); IList <IWebElement> eleList = QuestionEleList(_driver); for (int i = 0; i < eleList.Count; i++) { IWebElement ele = eleList[i]; if (_FormType == "Pre Application Form") { AQS.AddQuestion(_driver, i, ConfigKey, "PreApplicationFormLocalQue", (i + 1).ToString()); } else { AQS.AddQuestion(_driver, i, ConfigKey, Sheet, (i + 1).ToString()); } } }
// **************************** Editing Form Template public void Edit_AddQuestionToStep(IWebDriver _driver) { AddQuestiontoStepPage AQS = new AddQuestiontoStepPage(_driver); IList <IWebElement> eleList = QuestionEleList(_driver); for (int i = 0; i < eleList.Count; i++) { IWebElement ele = eleList[i]; if (_FormType == "Pre Application Form") { AQS.AddQuestion(_driver, i, "FormTemplatesData", "Edit_PreApplicationFormLocalQue", (i + 1).ToString()); } else { AQS.AddQuestion(_driver, i, "FormTemplatesData", "Edit_AddQuestiontoStep", (i + 1).ToString()); } } }
public void AddLocalQuestion(string ConfigKey, string SheetName) { AddQuestiontoStepPage AQS = new AddQuestiontoStepPage(driver); AQS.AddQuestion(driver, 0, ConfigKey, SheetName, "1"); }