public void AddGlobalQuestionToStep(IWebDriver _driver, string ConfigKey, string SheetName) { _04_SearchGlobalQuestionPage SGQ = new _04_SearchGlobalQuestionPage(_driver); IList <IWebElement> eleList = GlobalQuestionEleList(_driver); for (int i = 0; i < eleList.Count; i++) { IWebElement ele = eleList[i]; if (_FormType == "Pre Application Form") { SGQ.AddGlobalQuestion(_driver, i, ConfigKey, "PreApplicationFormGlobalQue", (i + 1).ToString()); } else { SGQ.AddGlobalQuestion(_driver, i, ConfigKey, SheetName, (i + 1).ToString()); } } }
public void AddGlobalQuestion(string ConfigKey, string SheetName) { _04_SearchGlobalQuestionPage SGQ = new _04_SearchGlobalQuestionPage(driver); SGQ.AddGlobalQuestion(driver, 0, ConfigKey, SheetName, "1"); }