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 I
The account information to open from and update with this Selenium pageList with all account sheets/card billingsprotected int
Current position in ktoCard listprotected int
Current position in other documents listList with all other documentsFields inherited from class de.frankmuenster.mahoe.web.webpages.SeleniumWebPage
driver
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
AbstractPostBoxPage
(org.openqa.selenium.WebDriver driver, I accountInfo) Instantiate a new PostBoxPage in the given Webdriver an for the given account -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returnstrue
if the PostBox has more accounts sheets/card billings.boolean
Returnstrue
if the PostBox has more accounts sheets/card billings.Returns the next accounts sheet/card billing from the PostBoxReturns the next document from the PostBoxvoid
Set accountSheet read position back to 0 beginningvoid
Set 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()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<I>
- 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<I>
- Returns:
true
if the PostBox has more elements
-
nextAccountSheet
Returns the next accounts sheet/card billing from the PostBox- Specified by:
nextAccountSheet
in 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:
nextDocument
in 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:
resetAccountSheetReadPosition
in interfacePostBoxPage<I>
-
resetDocumentsReadPosition
public void resetDocumentsReadPosition()Set documents read position back to 0 beginning- Specified by:
resetDocumentsReadPosition
in interfacePostBoxPage<I>
-