}
public void addManagedRepository( String identifier, String name, String directory, String indexDirectory,
- String type, String cron, String daysOlder, String retentionCount )
+ String type, String cron, String daysOlder, String retentionCount, boolean wait)
{
// goToRepositoriesPage();
// clickLinkWithText( "Add" );
setFieldValue( "repository.daysOlder", daysOlder );
setFieldValue( "repository.retentionCount", retentionCount );
// TODO
- clickButtonWithValue( "Add Repository" );
+ clickButtonWithValue( "Add Repository", wait );
}
// artifact management
public void waitPage()
{
// TODO define a smaller maxWaitTimeJsInMs for wait javascript response for browser side validation
- getSelenium().waitForPageToLoad( maxWaitTimeInMs );
+ //getSelenium().waitForPageToLoad( maxWaitTimeInMs );
+ // http://jira.openqa.org/browse/SRC-302
+ getSelenium().waitForCondition( "selenium.isElementPresent('document.body');", maxWaitTimeInMs );
+ /*
+ try
+ {
+ Thread.sleep( 1000 );
+ }
+ catch ( InterruptedException e )
+ {
+ throw new RuntimeException( "issue on Thread.sleep : " + e.getMessage(), e );
+ }*/
}
public String getFieldValue( String fieldName )