Example usage for Java org.openqa.selenium.support PageFactory fields, constructors, methods, implement or subclass
The text is from its open source code.
T | initElements(WebDriver driver, Class Instantiate an instance of the given class, and set a lazy proxy for each of the WebElement and List<WebElement> fields that have been declared, assuming that the field name is also the HTML element's "id" or "name". |
void | initElements(WebDriver driver, Object page) As #initElements(WebDriver,Class) but will only replace the fields of an already instantiated Page Object. |
void | initElements(ElementLocatorFactory factory, Object page) Similar to the other "initElements" methods, but takes an ElementLocatorFactory which is used for providing the mechanism for finding elements. |
void | initElements(FieldDecorator decorator, Object page) Similar to the other "initElements" methods, but takes an FieldDecorator which is used for decorating each of the fields. |