Class BosDetailsPage

  • All Implemented Interfaces:
    DetailsPage

    public class BosDetailsPage
    extends BosAccountPage
    implements DetailsPage
    The Bank of Scotland details page to retrieve account details
    Since:
    2.6.0
    Author:
    Frank MÜnster
    • Constructor Detail

      • BosDetailsPage

        public BosDetailsPage​(org.openqa.selenium.WebDriver driver,
                              BosWebAccountInformation accountInfo)
                       throws WebSiteException
        Creates a new instance of the details page, opens it and extracts mandatory values.
        Parameters:
        driver - the Selenium WebDriver with the logged in account
        accountInfo - the account info object
        Throws:
        WebSiteException - in case the details page could not be opened or mandatory values could not by extracted.
    • Method Detail

      • getBIC

        public java.lang.String getBIC()
      • getCreditLimit

        public java.math.BigDecimal getCreditLimit()
                                            throws WebSiteException
        Description copied from interface: DetailsPage
        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
        Description copied from interface: DetailsPage
        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
        Description copied from interface: DetailsPage
        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
        Description copied from interface: DetailsPage
        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