public abstract class AbstractPage extends Object implements WebPage
Modifier | Constructor and Description |
---|---|
protected |
AbstractPage() |
Modifier and Type | Method and Description |
---|---|
String |
getExpectedPageTitle() |
protected Map<String,Map<String,String>> |
getObjectContainerMap() |
protected Map<String,String> |
getObjectMap()
Load object map.
|
protected String |
getPageTitle() |
protected List<String> |
getPageValidators() |
WebDriverPlatform |
getPlatform() |
String |
getSiteLocale() |
void |
initPage(String pageDomain,
String pageClassName)
Initialize the page by it's name and page path
|
void |
initPage(String pageDomain,
String pageClassName,
String siteLocale)
Initialize the page by it's name, page path, and site locale
|
void |
initPage(String pageDomain,
String pageClassName,
String siteLocale,
WebDriverPlatform platform) |
void |
initPage(String pageDomain,
String pageClassName,
WebDriverPlatform platform) |
boolean |
isInitialized() |
boolean |
isPageValidated()
Returns the outcome of calling
WebPage.validatePage() to validate the loaded page on the WebDriver
session. |
protected void |
loadObjectMap(Map<String,String> sourceMap)
Load object map.
|
protected void |
setPageInitialized(boolean pageInitialized) |
protected void |
setPageTitle(String pageTitle) |
void |
validatePage()
Validates the page against the defined
pageValidators defined in the PageYAML for this page. |
protected void setPageInitialized(boolean pageInitialized)
protected String getPageTitle()
protected void setPageTitle(String pageTitle)
public void initPage(String pageDomain, String pageClassName)
WebPage
protected void loadObjectMap(Map<String,String> sourceMap)
sourceMap
- the source mappublic void initPage(String pageDomain, String pageClassName, String siteLocale)
WebPage
public void initPage(String pageDomain, String pageClassName, WebDriverPlatform platform)
public void initPage(String pageDomain, String pageClassName, String siteLocale, WebDriverPlatform platform)
public boolean isInitialized()
isInitialized
in interface WebPage
public String getExpectedPageTitle()
getExpectedPageTitle
in interface WebPage
public String getSiteLocale()
getSiteLocale
in interface WebPage
public WebDriverPlatform getPlatform()
public void validatePage()
WebPage
pageValidators
defined in the PageYAML for this page.validatePage
in interface WebPage
public boolean isPageValidated()
WebPage
WebPage.validatePage()
to validate the loaded page on the WebDriver
session.isPageValidated
in interface WebPage
true
or false
, if the page is validated, meaning all
pageValidators
passCopyright © 2016 PayPal Open Source. All rights reserved.