示例#1
0
 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));
 }
示例#2
0
 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));
 }