public final class WisePageFactory extends Object
| Modifier and Type | Method and Description |
|---|---|
static <T> T |
initElements(org.openqa.selenium.SearchContext searchContext,
T instance)
As
initElements(WebDriver, Class) but will only replace the element fields of an
already instantiated Page Object. |
static <T> T |
initElements(org.openqa.selenium.WebDriver driver,
Class<T> clazz)
Instantiates an instance of the given class, and set a lazy proxy for each of its element
fields (WebElement, List<WebElement> or any type annotated with Field, Container or
Frame).
|
public static <T> T initElements(org.openqa.selenium.SearchContext searchContext,
T instance)
initElements(WebDriver, Class) but will only replace the element fields of an
already instantiated Page Object.T - The type of the instance.searchContext - The context that will be used to look up the elements.instance - The instance whose fields should be proxied.public static <T> T initElements(org.openqa.selenium.WebDriver driver,
Class<T> clazz)
T - The class type that will be initialized.driver - The driver that will be used to look up the elements of the object.clazz - The class to be initialized.Copyright © 2013. All Rights Reserved.