HtmlElement.Net
Public Member Functions | List of all members
HtmlElements.Proxy.IProxyFactory Interface Reference

Creates instances implementing IWebElement or IList<T> interfaces and wrapping corresponding element loaders More...

Inherited by HtmlElements.Proxy.ProxyFactory.

Public Member Functions

IWebElement CreateWebElementProxy (ILoader< IWebElement > loader)
 Creates IWebElement instance using loader to get raw IWebElement and delegating calls to it. More...
 
IWebElement CreateFrameProxy (ILoader< IWebElement > loader)
 Create frame-specific web element proxy using IWebDriver to locate nested elements. More...
 
object CreateListProxy (Type elementType, object loader)
 Creates list of WebElements wrapping loader and delegating all calls to list returned by it. More...
 
IList< TElement > CreateListProxy< TElement > (ILoader< IList< TElement >> loader)
 Creates list of WebElements wrapping loader and delegating all calls to list returned by it. More...
 

Detailed Description

Creates instances implementing IWebElement or IList<T> interfaces and wrapping corresponding element loaders

Member Function Documentation

◆ CreateFrameProxy()

IWebElement HtmlElements.Proxy.IProxyFactory.CreateFrameProxy ( ILoader< IWebElement >  loader)

Create frame-specific web element proxy using IWebDriver to locate nested elements.

Parameters
loaderElement loader providing raw IWebElement pointing to frame.
Returns
Proxy implementing IWebElement interface.

Implemented in HtmlElements.Proxy.ProxyFactory.

◆ CreateListProxy()

object HtmlElements.Proxy.IProxyFactory.CreateListProxy ( Type  elementType,
object  loader 
)

Creates list of WebElements wrapping loader and delegating all calls to list returned by it.

Parameters
elementTypeType of elements stored in list.
loaderList loader providing collection of raw WebElements or page objects.
Returns
Proxy implementing IList<T> interface.

Implemented in HtmlElements.Proxy.ProxyFactory.

◆ CreateListProxy< TElement >()

IList<TElement> HtmlElements.Proxy.IProxyFactory.CreateListProxy< TElement > ( ILoader< IList< TElement >>  loader)

Creates list of WebElements wrapping loader and delegating all calls to list returned by it.

Template Parameters
TElementType of elements stored in list.
Parameters
loaderList loader providing collection of raw WebElements or page objects.
Returns
Proxy implementing IList<T> interface.

Implemented in HtmlElements.Proxy.ProxyFactory.

◆ CreateWebElementProxy()

IWebElement HtmlElements.Proxy.IProxyFactory.CreateWebElementProxy ( ILoader< IWebElement >  loader)

Creates IWebElement instance using loader to get raw IWebElement and delegating calls to it.

Parameters
loaderElement loader providing raw IWebElement.
Returns
Proxy implementing IWebElement interface.

Implemented in HtmlElements.Proxy.ProxyFactory.