]> source.dussan.org Git - archiva.git/commitdiff
revert previous as don't work very well....
authorOlivier Lamy <olamy@apache.org>
Mon, 19 Sep 2011 12:41:07 +0000 (12:41 +0000)
committerOlivier Lamy <olamy@apache.org>
Mon, 19 Sep 2011 12:41:07 +0000 (12:41 +0000)
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1172593 13f79535-47bb-0310-9956-ffa450edef68

archiva-modules/archiva-web/archiva-webapp-test/src/test/testng/org/apache/archiva/web/test/parent/AbstractSeleniumTest.java

index 76c025a37981655ad09aa2cc2b5c2b5adaf85e33..fc747ba4ddc3b64839093a001f9e7905551d09f3 100644 (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
         {