Class AbstractPostBoxPage<I>
- java.lang.Object
-
- de.frankmuenster.mahoe.web.webpages.SeleniumWebPage
-
- de.frankmuenster.mahoe.banks.santander.webpages.AbstractPostBoxPage<I>
-
- Type Parameters:
I
- the concrete account information
- All Implemented Interfaces:
PostBoxPage
- Direct Known Subclasses:
BosPostBoxPage
,SantanderPostBoxPage
,TargoBankPostBoxPage
public abstract class AbstractPostBoxPage<I> extends SeleniumWebPage implements PostBoxPage
An abstract post box page providing the standard operations- Since:
- 2.6.0
- Author:
- Frank Münster
-
-
Field Summary
Fields Modifier and Type Field Description protected I
accountInfo
The account information to open from and update with this Selenium pageprotected java.util.List<org.apache.commons.lang3.tuple.Pair<java.util.Date,org.openqa.selenium.WebElement>>
accountSheetDocuments
List with all account sheets/card billingsprotected int
accountSheetsPosition
Current position in ktoCard listprotected int
documentsPosition
Current position in other documents listprotected java.util.List<org.apache.commons.lang3.tuple.Pair<java.util.Date,org.openqa.selenium.WebElement>>
otherDocuments
List with all other documents-
Fields inherited from class de.frankmuenster.mahoe.web.webpages.SeleniumWebPage
driver
-
-
Constructor Summary
Constructors 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
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
hasNextAccountSheet()
Returnstrue
if the PostBox has more accounts sheets/card billings.boolean
hasNextDocument()
Returnstrue
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 PostBoxorg.apache.commons.lang3.tuple.Pair<java.util.Date,org.openqa.selenium.WebElement>
nextDocument()
Returns the next document from the PostBox-
Methods inherited from class de.frankmuenster.mahoe.web.webpages.SeleniumWebPage
elementExist
-
-
-
-
Field Detail
-
accountInfo
protected final I accountInfo
The account information to open from and update with this Selenium page
-
accountSheetsPosition
protected int accountSheetsPosition
Current position in ktoCard list
-
documentsPosition
protected int documentsPosition
Current position in other documents list
-
accountSheetDocuments
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
-
otherDocuments
protected java.util.List<org.apache.commons.lang3.tuple.Pair<java.util.Date,org.openqa.selenium.WebElement>> otherDocuments
List with all other documents
-
-
Constructor Detail
-
AbstractPostBoxPage
protected AbstractPostBoxPage(org.openqa.selenium.WebDriver driver, I accountInfo)
Instantiate a new PostBoxPage in the given Webdriver an for the given account- Parameters:
driver
-accountInfo
-
-
-
Method Detail
-
hasNextAccountSheet
public boolean hasNextAccountSheet()
Returnstrue
if the PostBox has more accounts sheets/card billings. (In other words, returnstrue
ifnextDocument()
would return an element rather than throwing an exception.)- Specified by:
hasNextAccountSheet
in interfacePostBoxPage
- Returns:
true
if the PostBox has more elements
-
hasNextDocument
public boolean hasNextDocument()
Returnstrue
if the PostBox has more accounts sheets/card billings. (In other words, returnstrue
ifnextDocument()
would return an element rather than throwing an exception.)- Specified by:
hasNextDocument
in interfacePostBoxPage
- Returns:
true
if the PostBox has more elements
-
nextAccountSheet
public org.apache.commons.lang3.tuple.Pair<java.util.Date,org.openqa.selenium.WebElement> nextAccountSheet() throws java.util.NoSuchElementException
Returns the next accounts sheet/card billing from the PostBox- Specified by:
nextAccountSheet
in interfacePostBoxPage
- Returns:
- the next accounts sheets/card billings as Pair< Date,WebElement >
- Throws:
java.util.NoSuchElementException
- - if the PostBox has no more elements
-
nextDocument
public org.apache.commons.lang3.tuple.Pair<java.util.Date,org.openqa.selenium.WebElement> nextDocument() throws java.util.NoSuchElementException
Returns the next document from the PostBox- Specified by:
nextDocument
in interfacePostBoxPage
- Returns:
- the next document as Pair< Date,WebElement >
- Throws:
java.util.NoSuchElementException
- - if the PostBox has no more elements
-
-