NdsBeisUi/src/test/java/com/northgateps/nds/beis/ui/selenium/pagehelper/LoginPageHelper.java
/** 
     * The account locked page currently has to have the same dcid as the login page.
     * Fails if it detects we're on the account locked page.
     */
The account locked page currently has to have the same dcid as the login page.
Fails if it detects we're on the account locked page.
The account locked page currently has to have the same dcid as the login page . Fails if it detects we ' re on the account locked page .
private void checkNotAccountLocked() {
        List<WebElement> elements = getPageObject().getDriver().findElements(By.id("content"));
        if (elements.size() > 0) {
            final String content = elements.get(0).getText();
            if (content.contains("account has been locked")) {
                fail("The account has been locked");
            } else {
                logger.debug("Account locked page not detected");
            }
        }
    }
private void checkNotAccountLocked ( ) { List < WebElement > elements = getPageObject ( ) . getDriver ( ) . findElements ( By . id ( "content" ) ) ; if ( elements . size ( ) > 0 ) { final String content = elements . get ( 0 ) . getText ( ) ; if ( content . contains ( "account has been locked" ) ) { fail ( "The account has been locked" ) ; } else { logger . debug ( "Account locked page not detected" ) ; } } }
The account locked page currently has to have the same dcid as the login page.
The account locked page currently has to have the same dcid as the login page .