private ScriptGenerator GetScriptGenerator(IElement element) { return(ElementValidator.IsClickable(element) ? (ScriptGenerator) new ClickScriptGenerator() : (ElementValidator.IsInputField(element) ? new InputScriptGenerator() : null)); }
public List <IElement> GetInputElements(List <IElement> elements) { var resultList = new List <IElement>(); foreach (var element in elements) { if (ElementValidator.IsInputField(element)) { resultList.Add(element); } } return(resultList); }