| Modifier and Type | Class and Description |
|---|---|
class |
Page.PageElement |
IPage.IPageElement| Modifier and Type | Field and Description |
|---|---|
protected String |
application |
protected Callbacks.Callback |
callBack |
static String |
ERROR_DURING_PAGE_ELEMENT_LOOKUP |
protected Page |
motherPage |
protected String |
pageKey |
static String |
UNABLE_TO_RETRIEVE_PAGE |
static String |
UNABLE_TO_RETRIEVE_PAGE_ELEMENT |
| Modifier | Constructor and Description |
|---|---|
protected |
Page() |
| Modifier and Type | Method and Description |
|---|---|
String |
getApplication() |
Callbacks.Callback |
getCallBack() |
org.openqa.selenium.WebDriver |
getDriver()
Quick getter to the global web driver
|
static Page |
getInstance(String className)
Finds a Page by its name (not the full qualified name).
|
Page |
getMotherPage() |
Page.PageElement |
getPageElementByKey(String key) |
String |
getPageKey() |
void |
setMotherPage(Page motherPage)
set the linked container page.
|
static void |
setPageMainPackage(String packageName)
Sets the Page main package used to find pages by their class name.
|
String |
toString() |
public static final String UNABLE_TO_RETRIEVE_PAGE
public static final String UNABLE_TO_RETRIEVE_PAGE_ELEMENT
public static final String ERROR_DURING_PAGE_ELEMENT_LOOKUP
protected Page motherPage
protected String pageKey
protected String application
protected Callbacks.Callback callBack
public Callbacks.Callback getCallBack()
getCallBack in interface IPagepublic static Page getInstance(String className) throws TechnicalException
className - The name of the class to find. Full qualified name is not required.
Ex: 'MyPage' or 'mypackageinpages.MyPage'TechnicalException - if ClassNotFoundException in getInstance() of Page.public static void setPageMainPackage(String packageName)
packageName - The new Page package namepublic Page.PageElement getPageElementByKey(String key) throws TechnicalException
getPageElementByKey in interface IPagekey - of PageElementTechnicalExceptionpublic org.openqa.selenium.WebDriver getDriver()
public String getPageKey()
getPageKey in interface IPagepublic String getApplication()
getApplication in interface IPagepublic Page getMotherPage()
getMotherPage in interface IPagepublic void setMotherPage(Page motherPage)
setMotherPage in interface IPagemotherPage - is the mother page linkedCopyright © 2023 NoraUi. All rights reserved.