|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PageObjectFactory
Responsible for creating page objects being the entry point into the framework.
Method Summary | ||
---|---|---|
|
createGlobalPage(Class<T> pageType)
Create a global page of given pageType. |
|
Locator |
createLocator(LocatorType type,
String value)
Create locator given a locator type and value. |
|
|
createPageObject(Class<P> type)
Create any page object component of the framework |
Method Detail |
---|
<T extends GlobalPage> T createGlobalPage(Class<T> pageType)
T
- type of the global page to createpageType
- class representing the interface of the desired global page.
GlobalPage
interface in the test context represented by this factory
IllegalArgumentException
- if pageType does not represent an abstract interface of the desired global page,
or this factory is not able to provide implementations of the interface represented by pageType. At the very least,
every factory should support default global pages specified in the GlobalPages
enumerationGlobalPages
Locator createLocator(LocatorType type, String value)
type
- type of the desired locatorvalue
- value of the desired locator
IllegalArgumentException
- if type is not recoginzed by this factory, or type and
value are deemed incompatible for the locator created by this factoryLocator
<P extends PageObject> P createPageObject(Class<P> type)
P
- type of the componenttype
- component class
IllegalArgumentException
- if component type P is not supported by this factory
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |