//Search
public void goToSearchPage()
{
- if ( !"Apache Archiva \\ Quick Search".equals( getSelenium().getTitle() ) )
+ if ( !"Apache Archiva \\ Quick Search".equals( getTitle() ) )
{
clickLinkWithText( "Search" );
getSelenium().waitForPageToLoad( maxWaitTimeInMs );
clickSubmitWithLocator( "filteredSearch_0" );
}
-}
\ No newline at end of file
+}
public void assertPage( String title )
{
- // Collapse spaces
- String actualTitle = getSelenium().getTitle().replaceAll( "[ \n\r]+", " " );
- Assert.assertEquals( actualTitle, title );
+ Assert.assertEquals( getTitle(), title );
}
public String getTitle()
{
- return getSelenium().getTitle();
+ // Collapse spaces
+ return getSelenium().getTitle().replaceAll( "[ \n\r]+", " " );
}
public String getHtmlContent()