Author: konstantin.mishin
Date: 2009-04-01 06:21:24 -0400 (Wed, 01 Apr 2009)
New Revision: 13332
Modified:
trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/ProgressBarTest.java
Log:
RF-6523
Modified:
trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/ProgressBarTest.java
===================================================================
---
trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/ProgressBarTest.java 2009-03-31
23:54:56 UTC (rev 13331)
+++
trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/ProgressBarTest.java 2009-04-01
10:21:24 UTC (rev 13332)
@@ -60,7 +60,9 @@
writeStatus("Enable polling");
enableProgressBar(progressBarId, true);
- pause(5000, progressBarId);
+ while (progressBarId.indexOf("progressBar1") != -1 &&
!selenium.isElementPresent(progressBarId + ":remain")) {
+ waitForAjaxCompletion();
+ }
writeStatus("Disable polling");
enableProgressBar(progressBarId, false);
@@ -238,7 +240,9 @@
// enable()
enableProgressBar(progressBarId, true);
- pause(5000, progressBarId);
+ while (progressBarId.indexOf("progressBar1") != -1 &&
!selenium.isElementPresent(progressBarId + ":remain")) {
+ waitForAjaxCompletion();
+ }
// disable()
writeStatus("Disable polling");
@@ -280,7 +284,9 @@
writeStatus("Enable polling");
enableProgressBar(progressBarId, true);
- pause(5000, progressBarId);
+ while (!selenium.isElementPresent(progressBarId + ":remain")) {
+ waitForAjaxCompletion();
+ }
writeStatus("Disable polling");
enableProgressBar(progressBarId, false);
@@ -321,7 +327,9 @@
writeStatus("Enable polling");
enableProgressBar(progressBarId, true);
- pause(5000, progressBarId);
+ while (progressBarId.indexOf("progressBar1") != -1 &&
!selenium.isElementPresent(progressBarId + ":remain")) {
+ waitForAjaxCompletion();
+ }
writeStatus("Disable polling");
enableProgressBar(progressBarId, false);
@@ -353,7 +361,9 @@
writeStatus("Enable polling");
enableProgressBar(progressBarId, true);
- pause(5000, progressBarId);
+ while (!selenium.isElementPresent(progressBarId + ":remain")) {
+ waitForAjaxCompletion();
+ }
writeStatus("Disable polling");
enableProgressBar(progressBarId, false);
Show replies by date