public IEnumerable <WatiN.Core.Element> Filter <TComponent>(IComponentCollection <TComponent> collection, Predicate <TComponent> predicate) where TComponent : Component { return(collection.Filter(predicate).Cast <WatiN.Core.Element>().WithinScope(Scope)); }
public IEnumerable <WatiN.Core.Element> Filter <TComponent>(IComponentCollection <TComponent> collection, Constraint constraint) where TComponent : Component { return(collection.Filter(constraint).Cast <WatiN.Core.Element>().WithinScope(Scope)); }