public abstract class BasicPageImpl extends AbstractPage implements ParentTraits
| Modifier | Constructor and Description |
|---|---|
protected |
BasicPageImpl()
Instantiates a new base page impl.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getActualPageTitle() |
BasicPageImpl |
getCurrentPage()
Returns the current page
BasicPageImpl |
String |
getExpectedPageTitle() |
abstract BasicPageImpl |
getPage() |
boolean |
hasExpectedPageTitle()
Validates whether the actual current page title equals to expected page title.
|
boolean |
isPageValidated()
Returns the outcome of calling
WebPage.validatePage() to validate the loaded page on the WebDriver
session. |
org.openqa.selenium.remote.RemoteWebElement |
locateChildElement(String locator)
Returns the child element denoted by the locator
|
List<org.openqa.selenium.WebElement> |
locateChildElements(String locator)
Returns the
List of WebElements WebElement denoted by the locator |
void |
validatePage()
Validates the page against the defined
pageValidators defined in the PageYAML for this page. |
getObjectContainerMap, getObjectMap, getPageTitle, getPageValidators, getPlatform, getSiteLocale, initPage, initPage, initPage, initPage, isInitialized, loadObjectMap, setPageInitialized, setPageTitlepublic String getActualPageTitle()
public String getExpectedPageTitle()
getExpectedPageTitle in interface WebPagegetExpectedPageTitle in class AbstractPagepublic boolean hasExpectedPageTitle()
public abstract BasicPageImpl getPage()
public List<org.openqa.selenium.WebElement> locateChildElements(String locator)
ParentTraitsList of WebElements WebElement denoted by the locatorlocateChildElements in interface ParentTraitspublic org.openqa.selenium.remote.RemoteWebElement locateChildElement(String locator)
ParentTraitslocateChildElement in interface ParentTraitspublic BasicPageImpl getCurrentPage()
ParentTraitsBasicPageImplgetCurrentPage in interface ParentTraitspublic void validatePage()
WebPagepageValidators defined in the PageYAML for this page.validatePage in interface WebPagevalidatePage in class AbstractPagepublic boolean isPageValidated()
WebPageWebPage.validatePage() to validate the loaded page on the WebDriver
session.isPageValidated in interface WebPageisPageValidated in class AbstractPagetrue or false, if the page is validated, meaning all
pageValidators passCopyright © 2016 PayPal Open Source. All rights reserved.