예제 #1
0
        public string FindElement(CruciatusElement parent, string searchStrategy, string searchValue)
        {
            var strategy = ByHelper.GetStrategy(searchStrategy, searchValue);
            var element  = parent.FindElement(strategy);

            if (element == null)
            {
                throw new AutomationException("Element cannot be found", ResponseStatus.NoSuchElement);
            }

            return(this.RegisterElement(element));
        }
예제 #2
0
 public static CheckBox GetCheckBoxByName(this CruciatusElement element, string name)
 {
     return(element.FindElement(By.Name(name).AndType(ControlType.CheckBox)).ToCheckBox());
 }