Class Page
- java.lang.Object
-
- eu.tsystems.mms.tic.testframework.pageobjects.internal.AbstractPage<Page>
-
- eu.tsystems.mms.tic.testframework.pageobjects.Page
-
- All Implemented Interfaces:
eu.tsystems.mms.tic.testframework.internal.Nameable<Page>,eu.tsystems.mms.tic.testframework.logging.Loggable,PageCreator,LocatorFactoryProvider,PageObject<Page>,TestablePage,eu.tsystems.mms.tic.testframework.testing.TestControllerProvider,WebDriverRetainer
public class Page extends AbstractPage<Page> implements TestablePage
Represents a full web page and provides advancedPageObject.
-
-
Field Summary
-
Fields inherited from class eu.tsystems.mms.tic.testframework.pageobjects.internal.AbstractPage
pageFactory
-
Fields inherited from interface eu.tsystems.mms.tic.testframework.pageobjects.LocatorFactoryProvider
LOCATE
-
-
Constructor Summary
Constructors Constructor Description Page(org.openqa.selenium.WebDriver webDriver)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidassertIsNotTextDisplayed(java.lang.String text)Deprecated.voidassertIsNotTextPresent(java.lang.String text)Deprecated.voidassertIsTextDisplayed(java.lang.String text)Deprecated.voidassertIsTextDisplayed(java.lang.String text, java.lang.String description)Deprecated.voidassertIsTextPresent(java.lang.String text)Deprecated.voidassertIsTextPresent(java.lang.String text, java.lang.String description)Deprecated.PageAssertionsexpect()protected UiElementfind(Locator locator)protected UiElementfindDeep(Locator locator)protected UiElementFindergetFinder()java.lang.StringgetName(boolean detailed)Always return the class name of the pageeu.tsystems.mms.tic.testframework.internal.NameablegetParent()Pages should not have parents.org.openqa.selenium.WebDrivergetWebDriver()booleanhasOwnName()A page has always a nameprotected voidpageLoaded()voidscreenshotToReport()PagesetName(java.lang.String name)There is usually no need to set the name of a pagejava.lang.StringtoString()PageAssertionswaitFor(int seconds)booleanwaitForIsNotTextDisplayed(java.lang.String text)Deprecated.booleanwaitForIsNotTextDisplayedWithDelay(java.lang.String text, int delayInSeconds)Deprecated.booleanwaitForIsNotTextPresent(java.lang.String text)Deprecated.booleanwaitForIsNotTextPresentWithDelay(java.lang.String text, int delayInSeconds)Deprecated.-
Methods inherited from class eu.tsystems.mms.tic.testframework.pageobjects.internal.AbstractPage
addCustomFieldActions, assertPageIsNotShown, assertPageIsShown, checkPage, checkPageErrorState, checkPagePreparation, createComponent, createEmpty, createEmpty, createPage, find, find, findById, findByQa, findDeep, findDeep, waitForPage
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface eu.tsystems.mms.tic.testframework.internal.Nameable
getName, toString, traceAncestors
-
Methods inherited from interface eu.tsystems.mms.tic.testframework.pageobjects.internal.PageCreator
waitForPage
-
Methods inherited from interface eu.tsystems.mms.tic.testframework.pageobjects.TestablePage
assertThat, waitFor
-
-
-
-
Method Detail
-
getParent
public eu.tsystems.mms.tic.testframework.internal.Nameable getParent()
Pages should not have parents. UseComponentinstead.- Specified by:
getParentin interfaceeu.tsystems.mms.tic.testframework.internal.Nameable<Page>
-
hasOwnName
public boolean hasOwnName()
A page has always a name- Specified by:
hasOwnNamein interfaceeu.tsystems.mms.tic.testframework.internal.Nameable<Page>
-
setName
public Page setName(java.lang.String name)
There is usually no need to set the name of a page- Specified by:
setNamein interfaceeu.tsystems.mms.tic.testframework.internal.Nameable<Page>
-
getName
public java.lang.String getName(boolean detailed)
Always return the class name of the page- Specified by:
getNamein interfaceeu.tsystems.mms.tic.testframework.internal.Nameable<Page>- Specified by:
getNamein classAbstractPage<Page>
-
getWebDriver
public org.openqa.selenium.WebDriver getWebDriver()
- Specified by:
getWebDriverin interfaceWebDriverRetainer- Specified by:
getWebDriverin classAbstractPage<Page>
-
waitForIsNotTextPresentWithDelay
@Deprecated public boolean waitForIsNotTextPresentWithDelay(java.lang.String text, int delayInSeconds)Deprecated.Waits for a text to be not present.- Returns:
- boolean true if success == text is not present. false otherwise.
-
getFinder
protected UiElementFinder getFinder()
-
find
protected UiElement find(Locator locator)
- Specified by:
findin classAbstractPage<Page>
-
findDeep
protected UiElement findDeep(Locator locator)
- Specified by:
findDeepin classAbstractPage<Page>
-
waitForIsNotTextDisplayedWithDelay
@Deprecated public boolean waitForIsNotTextDisplayedWithDelay(java.lang.String text, int delayInSeconds)Deprecated.Waits for a text to be not present.- Returns:
- boolean true if success == text is not present. false otherwise.
-
pageLoaded
protected void pageLoaded()
- Overrides:
pageLoadedin classAbstractPage<Page>
-
waitForIsNotTextPresent
@Deprecated public boolean waitForIsNotTextPresent(java.lang.String text)
Deprecated.Waits for a text to be not present.- Returns:
- boolean true if success == text is not present. false otherwise.
-
waitForIsNotTextDisplayed
@Deprecated public boolean waitForIsNotTextDisplayed(java.lang.String text)
Deprecated.Waits for a text to be not displayed.- Returns:
- boolean true if success == text is not present. false otherwise.
-
assertIsTextPresent
@Deprecated public void assertIsTextPresent(java.lang.String text, java.lang.String description)Deprecated.
-
assertIsTextDisplayed
@Deprecated public void assertIsTextDisplayed(java.lang.String text, java.lang.String description)Deprecated.
-
assertIsTextPresent
@Deprecated public void assertIsTextPresent(java.lang.String text)
Deprecated.
-
assertIsTextDisplayed
@Deprecated public void assertIsTextDisplayed(java.lang.String text)
Deprecated.
-
assertIsNotTextPresent
@Deprecated public void assertIsNotTextPresent(java.lang.String text)
Deprecated.
-
assertIsNotTextDisplayed
@Deprecated public void assertIsNotTextDisplayed(java.lang.String text)
Deprecated.
-
waitFor
public PageAssertions waitFor(int seconds)
- Specified by:
waitForin interfaceTestablePage
-
expect
public PageAssertions expect()
- Specified by:
expectin interfaceTestablePage
-
screenshotToReport
public void screenshotToReport()
- Specified by:
screenshotToReportin interfacePageObject<Page>
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-