Package com.znize.platform.test.api
Interface PageLoader
-
public interface PageLoaderPage Loader.- Since:
- 5.12
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanacceptProtocol(java.lang.String protocol)Does this pageLoader accept the URL.voidclose()Close this PageLoader and its associated resources.java.lang.ObjectgetDriver()Get platform-dependent driver.ContainerBeangetPage(ContainerBean.DataAccessUnit dataAccessUnit, java.lang.String url, java.util.Locale locale, ResourceBundleLoader resourceBundleLoader)Get the page with the URL, which creates a root window.TextToSpeechgetTextToSpeech()Get the TextToSpeech object for text to voice.UserRegisterUtilgetUserRegisterUtil(InstanceTypeTest instanceTypeTest)Get util for user registration.voidinit(PageResource pageResource)Initialize.
-
-
-
Method Detail
-
acceptProtocol
boolean acceptProtocol(java.lang.String protocol)
Does this pageLoader accept the URL.- Parameters:
protocol- protocol such as http, https- Returns:
- true if accepted, false otherwise
-
init
void init(PageResource pageResource)
Initialize. PageLoader must be initialized before any method is called.- Parameters:
pageResource- the associated pageResource
-
getPage
ContainerBean getPage(ContainerBean.DataAccessUnit dataAccessUnit, java.lang.String url, java.util.Locale locale, ResourceBundleLoader resourceBundleLoader)
Get the page with the URL, which creates a root window.- Parameters:
dataAccessUnit- dataAccessUniturl- page URL that contains locale paraemterslocale- the locale in which the page is rendered. If null, default to TestConfig.getLocale()resourceBundleLoader- resource bundle loader- Returns:
- the root ContainerBean instance of root window.
-
close
void close()
Close this PageLoader and its associated resources.
-
getDriver
java.lang.Object getDriver()
Get platform-dependent driver. e.g. WebDriver for web.- Returns:
- platform-dependent driver
- Since:
- 5.13
-
getUserRegisterUtil
UserRegisterUtil getUserRegisterUtil(InstanceTypeTest instanceTypeTest)
Get util for user registration.- Returns:
- UserRegisterUtil object
- Since:
- 5.14
-
getTextToSpeech
TextToSpeech getTextToSpeech()
Get the TextToSpeech object for text to voice.- Returns:
- TextToSpeech object
- Since:
- 5.21
-
-