NdsBeisUi/src/test/java/com/northgateps/nds/beis/ui/selenium/pagehelper/ExpiredPasswordPageHelper.java
/** Skip the login page using either PASSWORD_1 or PASSWORD_2 for user ExpiredPasswordTest. */
Skip the login page using either PASSWORD_1 or PASSWORD_2 for user ExpiredPasswordTest.
Skip the login page using either PASSWORD_1 or PASSWORD_2 for user ExpiredPasswordTest .
public void login(LoginPageHelper loginPageHelper) {
        login(loginPageHelper, PASSWORD_1);
        String currentPage = getNewPageObject().getDcId();
        if ("login-form".equals(currentPage)) {
            oldPassword = PASSWORD_2;
            newPassword = PASSWORD_1;
            login(loginPageHelper, oldPassword);
        } else {
            oldPassword = PASSWORD_1;
            newPassword = PASSWORD_2;
        }
    }
public void login ( LoginPageHelper loginPageHelper ) { login ( loginPageHelper , PASSWORD_1 ) ; String currentPage = getNewPageObject ( ) . getDcId ( ) ; if ( "login-form" . equals ( currentPage ) ) { oldPassword = PASSWORD_2 ; newPassword = PASSWORD_1 ; login ( loginPageHelper , oldPassword ) ; } else { oldPassword = PASSWORD_1 ; newPassword = PASSWORD_2 ; } }
Skip the login page using either PASSWORD_1 or PASSWORD_2 for user ExpiredPasswordTest.
Skip the login page using either PASSWORD_1 or PASSWORD_2 for user ExpiredPasswordTest .
// try to log in (without any retries) // check if that worked or not // login has failed try again with the other password // login succeeded