Exemple #1
0
 private ScriptGenerator GetScriptGenerator(IElement element)
 {
     return(ElementValidator.IsClickable(element)
         ? (ScriptGenerator) new ClickScriptGenerator()
         : (ElementValidator.IsInputField(element)
             ? new InputScriptGenerator()
             : null));
 }
Exemple #2
0
        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);
        }