Example #1
0
        /// <inheritdoc />
        protected override ElementFinder FilterImpl(Constraint findBy)
        {
            var finder = new NativeElementFinder(factory, domContainer, ElementTags, Constraint & findBy);

            finder.WrapNativeElementFactory = WrapNativeElementFactory;

            return(finder);
        }
Example #2
0
        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);
        }
Example #3
0
 private NativeElementFinder CreateElementFinder <TElement>(Constraint findBy)
     where TElement : Element
 {
     return(NativeElementFinder.CreateNativeElementFinder <TElement>(nativeElementCollectionFactory, domContainer, findBy));
 }