/// <inheritdoc /> protected override ElementFinder FilterImpl(Constraint findBy) { var finder = new NativeElementFinder(factory, domContainer, ElementTags, Constraint & findBy); finder.WrapNativeElementFactory = WrapNativeElementFactory; return(finder); }
public static NativeElementFinder CreateNativeElementFinder <TElement>(NativeElementCollectionFactory factory, DomContainer domContainer, Constraint constraint) where TElement : Element { var finder = new NativeElementFinder(factory, domContainer, ElementFactory.GetElementTags <TElement>(), constraint); if (!typeof(TElement).Equals(typeof(Element))) { finder.WrapNativeElementFactory = (dom_container, native_element) => { return(ElementFactory.CreateElement <TElement>(dom_container, native_element)); }; } return(finder); }
private NativeElementFinder CreateElementFinder <TElement>(Constraint findBy) where TElement : Element { return(NativeElementFinder.CreateNativeElementFinder <TElement>(nativeElementCollectionFactory, domContainer, findBy)); }