I
- the concrete account informationPostBoxPage
BosPostBoxPage
, SantanderPostBoxPage
, TargoBankPostBoxPage
public abstract class AbstractPostBoxPage<I> extends SeleniumWebPage implements PostBoxPage
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,org.openqa.selenium.WebElement>> |
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,org.openqa.selenium.WebElement>> |
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,org.openqa.selenium.WebElement> |
nextAccountSheet() |
Returns the next accounts sheet/card billing from the PostBox
|
org.apache.commons.lang3.tuple.Pair<java.util.Date,org.openqa.selenium.WebElement> |
nextDocument() |
Returns the next document from the PostBox
|
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,org.openqa.selenium.WebElement>> accountSheetDocuments
protected java.util.List<org.apache.commons.lang3.tuple.Pair<java.util.Date,org.openqa.selenium.WebElement>> 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
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
true
if the PostBox has more elementspublic org.apache.commons.lang3.tuple.Pair<java.util.Date,org.openqa.selenium.WebElement> nextAccountSheet() throws java.util.NoSuchElementException
nextAccountSheet
in interface PostBoxPage
java.util.NoSuchElementException
- - if the PostBox has no more elementspublic org.apache.commons.lang3.tuple.Pair<java.util.Date,org.openqa.selenium.WebElement> nextDocument() throws java.util.NoSuchElementException
nextDocument
in interface PostBoxPage
java.util.NoSuchElementException
- - if the PostBox has no more elements