Class AbstractPostBoxPage<I,T>
java.lang.Object
de.frankmuenster.mahoe.web.webpages.SeleniumWebPage
de.frankmuenster.mahoe.web.webpages.AbstractPostBoxPage<I,T>
- Type Parameters:
I- the concrete account information
- All Implemented Interfaces:
PostBoxPage<T>
- Direct Known Subclasses:
BosPostBoxPage,SantanderPostBoxPage,TargoBankPostBoxPage
An abstract post box page providing the standard operations.
- Since:
- 2.6.0
- Author:
- Frank Münster
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final IThe account information to open from and update with this Selenium pageList with all account sheets/card billingsprotected intCurrent position in ktoCard listprotected intCurrent position in other documents listList with all other documentsFields inherited from class de.frankmuenster.mahoe.web.webpages.SeleniumWebPage
driver -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractPostBoxPage(org.openqa.selenium.WebDriver driver, I accountInfo) Instantiate a new PostBoxPage in the given Webdriver an for the given account -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturnstrueif the PostBox has more accounts sheets/card billings.booleanReturnstrueif the PostBox has more accounts sheets/card billings.Returns the next accounts sheet/card billing from the PostBoxReturns the next document from the PostBoxvoidSet accountSheet read position back to 0 beginningvoidSet documents read position back to 0 beginningMethods inherited from class de.frankmuenster.mahoe.web.webpages.SeleniumWebPage
elementExist
-
Field Details
-
accountInfo
The account information to open from and update with this Selenium page -
accountSheetsPosition
protected int accountSheetsPositionCurrent position in ktoCard list -
documentsPosition
protected int documentsPositionCurrent position in other documents list -
accountSheetDocuments
List with all account sheets/card billings -
otherDocuments
List with all other documents
-
-
Constructor Details
-
AbstractPostBoxPage
Instantiate a new PostBoxPage in the given Webdriver an for the given account- Parameters:
driver-accountInfo-
-
-
Method Details
-
hasNextAccountSheet
public boolean hasNextAccountSheet()Returnstrueif the PostBox has more accounts sheets/card billings. (In other words, returnstrueifnextDocument()would return an element rather than throwing an exception.)- Specified by:
hasNextAccountSheetin interfacePostBoxPage<I>- Returns:
trueif the PostBox has more elements
-
hasNextDocument
public boolean hasNextDocument()Returnstrueif the PostBox has more accounts sheets/card billings. (In other words, returnstrueifnextDocument()would return an element rather than throwing an exception.)- Specified by:
hasNextDocumentin interfacePostBoxPage<I>- Returns:
trueif the PostBox has more elements
-
nextAccountSheet
Returns the next accounts sheet/card billing from the PostBox- Specified by:
nextAccountSheetin interfacePostBoxPage<I>- Returns:
- the next accounts sheets/card billings as Pair< Date,WebElement >
- Throws:
NoSuchElementException- - if the PostBox has no more elements
-
nextDocument
Returns the next document from the PostBox- Specified by:
nextDocumentin interfacePostBoxPage<I>- Returns:
- the next document as Pair< Date,WebElement >
- Throws:
NoSuchElementException- - if the PostBox has no more elements
-
resetAccountSheetReadPosition
public void resetAccountSheetReadPosition()Set accountSheet read position back to 0 beginning- Specified by:
resetAccountSheetReadPositionin interfacePostBoxPage<I>
-
resetDocumentsReadPosition
public void resetDocumentsReadPosition()Set documents read position back to 0 beginning- Specified by:
resetDocumentsReadPositionin interfacePostBoxPage<I>
-