Interface PostBoxPage<T>
- All Known Implementing Classes:
AbstractPostBoxPage,BosPostBoxPage,SantanderPostBoxPage,TargoBankPostBoxPage
public interface PostBoxPage<T>
Interface for a PostBax page
T is either a WebElement or a String with the content of the WebElement
- Since:
- 2.6.0
- Author:
- Frank Münster
-
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 beginning
-
Method Details
-
hasNextAccountSheet
boolean hasNextAccountSheet()Returnstrueif the PostBox has more accounts sheets/card billings. (In other words, returnstrueifnextDocument()would return an element rather than throwing an exception.)- Returns:
trueif the PostBox has more elements
-
hasNextDocument
boolean hasNextDocument()Returnstrueif the PostBox has more accounts sheets/card billings. (In other words, returnstrueifnextDocument()would return an element rather than throwing an exception.)- Returns:
trueif the PostBox has more elements
-
nextAccountSheet
Returns the next accounts sheet/card billing from the PostBox- 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- Returns:
- the next document as Pair< Date,WebElement >
- Throws:
NoSuchElementException- - if the PostBox has no more elements
-
resetAccountSheetReadPosition
void resetAccountSheetReadPosition()Set accountSheet read position back to 0 beginning -
resetDocumentsReadPosition
void resetDocumentsReadPosition()Set documents read position back to 0 beginning
-