public class Factory extends Object
| Constructor and Description |
|---|
Factory() |
| Modifier and Type | Method and Description |
|---|---|
static org.openqa.selenium.By |
getReferencedBy(org.openqa.selenium.support.FindBy findByAnnotation) |
static <T> T |
initializePageFragment(Class<T> clazz,
org.openqa.selenium.WebElement root)
Returns initialized Page Fragment of given type.
|
static <T> T |
instantiatePageFragment(Class<T> clazz) |
public static <T> T initializePageFragment(Class<T> clazz, org.openqa.selenium.WebElement root)
@FindBy and
@Page annotations are initialized properly.T - the implementation of Page Fragmentclazz - the - root element to set to the initialized Page Fragmentpublic static <T> T instantiatePageFragment(Class<T> clazz)
public static org.openqa.selenium.By getReferencedBy(org.openqa.selenium.support.FindBy findByAnnotation)
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.