revert previous as don't work very well....

git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1172593 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Olivier Lamy 2011-09-19 12:41:07 +00:00
parent 035ed200ac
commit 39f4b78d4f
1 changed files with 7 additions and 2 deletions

View File

@ -237,9 +237,14 @@ public abstract class AbstractSeleniumTest
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 );
// those hack looks to break some tests :-(
// getSelenium().waitForCondition( "selenium.isElementPresent('document.body');", maxWaitTimeInMs );
//getSelenium().waitForCondition( "selenium.isElementPresent('footer');", maxWaitTimeInMs );
//getSelenium().waitForCondition( "selenium.browserbot.getCurrentWindow().document.getElementById('footer')",
// maxWaitTimeInMs );
// so the only hack is to not use a too small wait time
/*
try
{