HtmlElement.Net
Public Member Functions | List of all members
HtmlElements.LazyLoad.ILoaderFactory Interface Reference

Creates loaders for web elements and element lists More...

Inherited by HtmlElements.LazyLoad.LoaderFactory.

Public Member Functions

ILoader< IWebElement > CreateElementLoader (ISearchContext searchContext, By locator, bool enableCache)
 Creates element loader using search context and locator to find WebElement. More...
 
ILoader< ReadOnlyCollection< IWebElement > > CreateElementListLoader (ISearchContext searchContext, By locator, bool enableCache)
 Creates element list loader using search context and locator to find list of elements. More...
 
object CreateListLoader (Type elementType, ISearchContext searchContext, By locator, bool enableCache)
 Create list loader wrapping web elements loader. More...
 
ILoader< IList< TElement > > CreateListLoader< TElement > (ISearchContext searchContext, By locator, bool enableCache)
 Create list loader wrapping web elements loader. More...
 

Detailed Description

Creates loaders for web elements and element lists

Member Function Documentation

◆ CreateElementListLoader()

ILoader<ReadOnlyCollection<IWebElement> > HtmlElements.LazyLoad.ILoaderFactory.CreateElementListLoader ( ISearchContext  searchContext,
By  locator,
bool  enableCache 
)

Creates element list loader using search context and locator to find list of elements.

Parameters
searchContextWhere to search for web elements.
locatorHow to find a web elements.
enableCacheWhether elements should be cached once found.
Returns
Loader instance.

Implemented in HtmlElements.LazyLoad.LoaderFactory.

◆ CreateElementLoader()

ILoader<IWebElement> HtmlElements.LazyLoad.ILoaderFactory.CreateElementLoader ( ISearchContext  searchContext,
By  locator,
bool  enableCache 
)

Creates element loader using search context and locator to find WebElement.

Parameters
searchContextWhere to search for web element.
locatorHow to find a web element.
enableCacheWhether element should be cached once found.
Returns
Loader instance.

Implemented in HtmlElements.LazyLoad.LoaderFactory.

◆ CreateListLoader()

object HtmlElements.LazyLoad.ILoaderFactory.CreateListLoader ( Type  elementType,
ISearchContext  searchContext,
By  locator,
bool  enableCache 
)

Create list loader wrapping web elements loader.

Parameters
elementTypeType of list items.
searchContextWhere to search for web elements.
locatorHow to find a web elements.
enableCacheWhether elements should be cached once found.
Returns
Loader instance.

Implemented in HtmlElements.LazyLoad.LoaderFactory.

◆ CreateListLoader< TElement >()

ILoader<IList<TElement> > HtmlElements.LazyLoad.ILoaderFactory.CreateListLoader< TElement > ( ISearchContext  searchContext,
By  locator,
bool  enableCache 
)

Create list loader wrapping web elements loader.

Template Parameters
TElementType of list items.
Parameters
searchContextContext used to locate web elements.
locatorHow to find a web elements.
enableCacheWhether elements should be cached once found.
Returns
Loader instance.

Implemented in HtmlElements.LazyLoad.LoaderFactory.