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

public abstract class AbstractPostBoxPage<I,T> extends SeleniumWebPage implements PostBoxPage<T>
An abstract post box page providing the standard operations.
Since:
2.6.0
Author:
Frank Münster
  • Field Details

    • 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 List<org.apache.commons.lang3.tuple.Pair<Date,T>> accountSheetDocuments
      List with all account sheets/card billings
    • otherDocuments

      protected List<org.apache.commons.lang3.tuple.Pair<Date,T>> otherDocuments
      List with all other documents
  • Constructor Details

    • 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 Details

    • hasNextAccountSheet

      public boolean hasNextAccountSheet()
      Returns 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.)
      Specified by:
      hasNextAccountSheet in interface PostBoxPage<I>
      Returns:
      true if the PostBox has more elements
    • hasNextDocument

      public boolean hasNextDocument()
      Returns 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.)
      Specified by:
      hasNextDocument in interface PostBoxPage<I>
      Returns:
      true if the PostBox has more elements
    • nextAccountSheet

      public org.apache.commons.lang3.tuple.Pair<Date,T> nextAccountSheet() throws NoSuchElementException
      Returns the next accounts sheet/card billing from the PostBox
      Specified by:
      nextAccountSheet in interface PostBoxPage<I>
      Returns:
      the next accounts sheets/card billings as Pair< Date,WebElement >
      Throws:
      NoSuchElementException - - if the PostBox has no more elements
    • nextDocument

      public org.apache.commons.lang3.tuple.Pair<Date,T> nextDocument() throws NoSuchElementException
      Returns the next document from the PostBox
      Specified by:
      nextDocument in interface PostBoxPage<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 interface PostBoxPage<I>
    • resetDocumentsReadPosition

      public void resetDocumentsReadPosition()
      Set documents read position back to 0 beginning
      Specified by:
      resetDocumentsReadPosition in interface PostBoxPage<I>