HtmlElement.Net
|
Creates and recursively initializes page object instances. More...
Inherited by HtmlElements.AbstractPageObjectFactory.
Public Member Functions | |
IWebElement | CreateWebElement (ISearchContext searchContext, By locator) |
Creates WebElement found with provided locator in given search context. More... | |
TPageObject | CreateWebElement< TPageObject > (ISearchContext searchContext, By locator) |
Creates and initializes page object of a given type and all nested page objects. More... | |
ReadOnlyCollection< IWebElement > | CreateWebElementList (ISearchContext searchContext, By locator) |
Creates list of WebElements found with provided locator in given search context. More... | |
IList< TPageObject > | CreateWebElementList< TPageObject > (ISearchContext searchContext, By locator) |
Creates and initializes list of page elements and it's nested page objects. More... | |
TPageObject | Create< TPageObject > (ISearchContext searchContext) |
Creates and initializes page object of a given type and all nested page objects. More... | |
object | Create (Type pageObjectType, ISearchContext searchContext) |
Creates and initializes page object of a given type and all nested page objects. More... | |
void | Init (object pageObject, ISearchContext searchContext) |
Initialize all nested page objects in given instance. More... | |
void | Init (WebDriverWrapper pageObject) |
Initialize page object wrapped WebDriver instance. More... | |
Creates and recursively initializes page object instances.
object HtmlElements.IPageObjectFactory.Create | ( | Type | pageObjectType, |
ISearchContext | searchContext | ||
) |
Creates and initializes page object of a given type and all nested page objects.
pageObjectType | Page object class. |
searchContext | Context used for finding elements. |
Implemented in HtmlElements.AbstractPageObjectFactory.
TPageObject HtmlElements.IPageObjectFactory.Create< TPageObject > | ( | ISearchContext | searchContext | ) |
Creates and initializes page object of a given type and all nested page objects.
TPageObject | Page object class. |
searchContext | Context used for finding elements. |
Implemented in HtmlElements.AbstractPageObjectFactory.
IWebElement HtmlElements.IPageObjectFactory.CreateWebElement | ( | ISearchContext | searchContext, |
By | locator | ||
) |
Creates WebElement found with provided locator in given search context.
searchContext | Context used for finding element. |
locator | Element locator to use for finding element. |
Implemented in HtmlElements.PageObjectFactory, and HtmlElements.AbstractPageObjectFactory.
TPageObject HtmlElements.IPageObjectFactory.CreateWebElement< TPageObject > | ( | ISearchContext | searchContext, |
By | locator | ||
) |
Creates and initializes page object of a given type and all nested page objects.
TPageObject | Page object class. |
searchContext | Parent context used for finding the element used as page element root. |
locator | Locator used for finding underlying WebElement used as page element root. |
Implemented in HtmlElements.PageObjectFactory, and HtmlElements.AbstractPageObjectFactory.
TPageObject | : | class |
ReadOnlyCollection<IWebElement> HtmlElements.IPageObjectFactory.CreateWebElementList | ( | ISearchContext | searchContext, |
By | locator | ||
) |
Creates list of WebElements found with provided locator in given search context.
searchContext | Context used for finding elements. |
locator | Element locator to use for finding elements. |
Implemented in HtmlElements.PageObjectFactory, and HtmlElements.AbstractPageObjectFactory.
IList<TPageObject> HtmlElements.IPageObjectFactory.CreateWebElementList< TPageObject > | ( | ISearchContext | searchContext, |
By | locator | ||
) |
Creates and initializes list of page elements and it's nested page objects.
TPageObject | The type of the page object. |
searchContext | The search context used for finding underlying WebElements. |
locator | The locator used for finding underlying WebElements. |
Implemented in HtmlElements.PageObjectFactory, and HtmlElements.AbstractPageObjectFactory.
void HtmlElements.IPageObjectFactory.Init | ( | object | pageObject, |
ISearchContext | searchContext | ||
) |
Initialize all nested page objects in given instance.
pageObject | Page object instance to be initialized. |
searchContext | Context used for finding elements. |
Implemented in HtmlElements.AbstractPageObjectFactory.
void HtmlElements.IPageObjectFactory.Init | ( | WebDriverWrapper | pageObject | ) |
Initialize page object wrapped WebDriver instance.
pageObject | Page object instance to be initialized. |
Implemented in HtmlElements.AbstractPageObjectFactory.