Class AbstractPostBoxPage<I>

    • Field Summary

      Fields 
      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
    • 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()
      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
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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()
        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
        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
        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 interface PostBoxPage
        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 interface PostBoxPage
        Returns:
        the next document as Pair< Date,WebElement >
        Throws:
        java.util.NoSuchElementException - - if the PostBox has no more elements