public IEnumerable <T> GetChildren <T>(String xpath) where T : PageElement, new() { return(BaseElement .GetDescendants(xpath) .Select(e => new T { BaseElement = e }) .ToList()); }
public IEnumerable <CCElement> GetDescendants(String xpath) { return(BaseElement.GetDescendants(xpath)); }
public IEnumerable <String> GetOptionsText() { return(BaseElement.GetDescendants(".//option").Select(e => e.Text).ToList()); }
public Boolean Contains(String value) { return(BaseElement.GetDescendants(".//option[text()='" + value + "']").Any()); }