I
- the concrete account informationPostBoxPage<T>
BosPostBoxPage
, SantanderPostBoxPage
, TargoBankPostBoxPage
public abstract class AbstractPostBoxPage<I,T> extends SeleniumWebPage implements PostBoxPage<T>
Modifier and Type | Field | Description |
---|---|---|
protected I |
accountInfo |
The account information to open from and update with this Selenium page
|
protected java.util.List<org.apache.commons.lang3.tuple.Pair<java.util.Date,T>> |
accountSheetDocuments |
List with all account sheets/card billings
|
protected int |
accountSheetsPosition |
Current position in ktoCard list
|
protected int |
documentsPosition |
Current position in other documents list
|
protected java.util.List<org.apache.commons.lang3.tuple.Pair<java.util.Date,T>> |
otherDocuments |
List with all other documents
|
driver
Modifier | Constructor | Description |
---|---|---|
protected |
AbstractPostBoxPage(org.openqa.selenium.WebDriver driver,
I accountInfo) |
Instantiate a new PostBoxPage in the given Webdriver an for the given
account
|
Modifier and Type | Method | Description |
---|---|---|
boolean |
hasNextAccountSheet() |
Returns
true if the PostBox has more accounts sheets/card
billings. |
boolean |
hasNextDocument() |
Returns
true if the PostBox has more accounts sheets/card
billings. |
org.apache.commons.lang3.tuple.Pair<java.util.Date,T> |
nextAccountSheet() |
Returns the next accounts sheet/card billing from the PostBox
|
org.apache.commons.lang3.tuple.Pair<java.util.Date,T> |
nextDocument() |
Returns the next document from the PostBox
|
void |
resetAccountSheetReadPosition() |
Set accountSheet read position back to 0 beginning
|
void |
resetDocumentsReadPosition() |
Set documents read position back to 0 beginning
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
elementExist
protected final I accountInfo
protected int accountSheetsPosition
protected int documentsPosition
protected java.util.List<org.apache.commons.lang3.tuple.Pair<java.util.Date,T>> accountSheetDocuments
protected java.util.List<org.apache.commons.lang3.tuple.Pair<java.util.Date,T>> otherDocuments
protected AbstractPostBoxPage(org.openqa.selenium.WebDriver driver, I accountInfo)
driver
- accountInfo
- public boolean hasNextAccountSheet()
true
if the PostBox has more accounts sheets/card
billings. (In other words, returns true
if nextDocument()
would return an element rather than throwing an exception.)hasNextAccountSheet
in interface PostBoxPage<I>
true
if the PostBox has more elementspublic boolean hasNextDocument()
true
if the PostBox has more accounts sheets/card
billings. (In other words, returns true
if nextDocument()
would return an element rather than throwing an exception.)hasNextDocument
in interface PostBoxPage<I>
true
if the PostBox has more elementspublic org.apache.commons.lang3.tuple.Pair<java.util.Date,T> nextAccountSheet() throws java.util.NoSuchElementException
nextAccountSheet
in interface PostBoxPage<I>
java.util.NoSuchElementException
- - if the PostBox has no more elementspublic org.apache.commons.lang3.tuple.Pair<java.util.Date,T> nextDocument() throws java.util.NoSuchElementException
nextDocument
in interface PostBoxPage<I>
java.util.NoSuchElementException
- - if the PostBox has no more elementspublic void resetAccountSheetReadPosition()
resetAccountSheetReadPosition
in interface PostBoxPage<I>
public void resetDocumentsReadPosition()
resetDocumentsReadPosition
in interface PostBoxPage<I>