Class SantanderDetailsPage

    • Constructor Detail

      • SantanderDetailsPage

        public SantanderDetailsPage​(org.openqa.selenium.WebDriver driver,
                                    java.lang.String baseUrl,
                                    SantanderWebAccountInformation accountInfo)
                             throws WebSiteException
        Create a new instance of the details page for the given account
        Parameters:
        driver -
        accountInfo -
        Throws:
        WebSiteException
    • Method Detail

      • getAvailableAmount

        public java.math.BigDecimal getAvailableAmount()
                                                throws WebSiteException
        Returns the available amount.
        Specified by:
        getAvailableAmount in interface DetailsPage
        Returns:
        the available amount
        Throws:
        WebSiteException - in case the value could not be read from the details hover page
      • getCreditLimit

        public java.math.BigDecimal getCreditLimit()
                                            throws WebSiteException
        Return the limit of the credit card.
        Specified by:
        getCreditLimit in interface DetailsPage
        Returns:
        the credit card limit
        Throws:
        WebSiteException - in case the value could not be read from the details hover page
      • getLastTransaction

        public java.time.LocalDate getLastTransaction()
                                               throws WebSiteException
        Return the date of the last transaction.
        Specified by:
        getLastTransaction in interface DetailsPage
        Returns:
        date of the last transaction
        Throws:
        WebSiteException - in case the value could not be read from the details hover page
      • getNextBill

        public java.time.LocalDate getNextBill()
                                        throws WebSiteException
        Return the date of the next credit card bill.
        Specified by:
        getNextBill in interface DetailsPage
        Returns:
        date of the next credit card bill
        Throws:
        WebSiteException - in case the value could not be read from the details hover page
      • getNextSubtraction

        public java.time.LocalDate getNextSubtraction()
                                               throws WebSiteException
        Return the date of the next automatic subtraction.
        Specified by:
        getNextSubtraction in interface DetailsPage
        Returns:
        date of the next automatic subtraction
        Throws:
        WebSiteException - in case the value could not be read from the details hover page
      • getProductDescription

        public java.lang.String getProductDescription()
                                               throws WebSiteException
        The description of the credit card.
        Specified by:
        getProductDescription in interface DetailsPage
        Returns:
        the credit card description
        Throws:
        WebSiteException - in case the value could not be read from the details hover page