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, setPageTitle
public String getActualPageTitle()
public String getExpectedPageTitle()
getExpectedPageTitle
in interface WebPage
getExpectedPageTitle
in class AbstractPage
public boolean hasExpectedPageTitle()
public abstract BasicPageImpl getPage()
public List<org.openqa.selenium.WebElement> locateChildElements(String locator)
ParentTraits
List
of WebElements WebElement
denoted by the locatorlocateChildElements
in interface ParentTraits
public org.openqa.selenium.remote.RemoteWebElement locateChildElement(String locator)
ParentTraits
locateChildElement
in interface ParentTraits
public BasicPageImpl getCurrentPage()
ParentTraits
BasicPageImpl
getCurrentPage
in interface ParentTraits
public void validatePage()
WebPage
pageValidators
defined in the PageYAML for this page.validatePage
in interface WebPage
validatePage
in class AbstractPage
public boolean isPageValidated()
WebPage
WebPage.validatePage()
to validate the loaded page on the WebDriver
session.isPageValidated
in interface WebPage
isPageValidated
in class AbstractPage
true
or false
, if the page is validated, meaning all
pageValidators
passCopyright © 2016 PayPal Open Source. All rights reserved.