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)); }
public static CheckBox GetCheckBoxByName(this CruciatusElement element, string name) { return(element.FindElement(By.Name(name).AndType(ControlType.CheckBox)).ToCheckBox()); }