Project

General

Profile

« Previous | Next » 

Revision 8542a149

Added by Andreas Kohlbecker over 6 years ago

checking on each page for error messages being displayed

View differences:

src/main/java/eu/etaxonomy/dataportal/pages/PortalPage.java
1 1
package eu.etaxonomy.dataportal.pages;
2 2

  
3
import static org.junit.Assert.assertNull;
4

  
3 5
import java.io.File;
4 6
import java.io.IOException;
5 7
import java.lang.reflect.Constructor;
......
98 100
    @CacheLookup
99 101
    protected WebElement classificationBrowserBlock;
100 102

  
103
    @FindBy(className="messages_error")
104
    @CacheLookup
105
    protected WebElement messagesError;
106

  
101 107
    /**
102 108
     * Creates a new PortaPage. Implementations of this class will provide the base path of the page by
103 109
     * implementing the method {@link #getDrupalPageBase()}. The constructor argument <code>pagePathSuffix</code>
......
134 140
        // This call sets the WebElement fields.
135 141
        PageFactory.initElements(driver, this);
136 142

  
143
        assertNull("The page must not show an error box", messagesError);
144

  
137 145
        logger.info("loading " + pageUrl);
138 146

  
139 147
    }

Also available in: Unified diff