Class BosLoginPage

  • All Implemented Interfaces:
    LoginPage

    public class BosLoginPage
    extends SeleniumWebPage
    implements LoginPage
    The login page for the BOS Bank
    Since:
    2.6.0
    Author:
    Frank Münster
    • Constructor Summary

      Constructors 
      Constructor Description
      BosLoginPage​(org.openqa.selenium.WebDriver driver)
      Creates a new LoginPage for the BOS Bank
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean isLoggedIn()
      Check if a user is logged in.
      void login​(java.lang.String login, char[] password)
      Logging the given user.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • BosLoginPage

        public BosLoginPage​(org.openqa.selenium.WebDriver driver)
        Creates a new LoginPage for the BOS Bank
        Parameters:
        driver - the WebDriver to use for that page
    • Method Detail

      • isLoggedIn

        public boolean isLoggedIn()
        Description copied from interface: LoginPage
        Check if a user is logged in. There is no check if a specific account is logged in.
        Specified by:
        isLoggedIn in interface LoginPage
        Returns:
        true if an user is logged in, false else.
        See Also:
        LoginPage.isLoggedIn()
      • login

        public void login​(java.lang.String login,
                          char[] password)
                   throws WebSiteException
        Logging the given user.
        Specified by:
        login in interface LoginPage
        Parameters:
        login - the account to login
        password - the password
        Throws:
        WebSiteException - if the login fails