Author: kpiwko(a)redhat.com
Date: 2010-02-14 05:11:08 -0500 (Sun, 14 Feb 2010)
New Revision: 12051
Modified:
branches/community/Seam_2_2/src/test/ftest/examples/seambay/src/org/jboss/seam/example/seambay/test/selenium/WebServiceTestPageTest.java
Log:
JBQA-2983, wait for credentials updates is no more ambiguous
Modified:
branches/community/Seam_2_2/src/test/ftest/examples/seambay/src/org/jboss/seam/example/seambay/test/selenium/WebServiceTestPageTest.java
===================================================================
---
branches/community/Seam_2_2/src/test/ftest/examples/seambay/src/org/jboss/seam/example/seambay/test/selenium/WebServiceTestPageTest.java 2010-02-12
13:44:38 UTC (rev 12050)
+++
branches/community/Seam_2_2/src/test/ftest/examples/seambay/src/org/jboss/seam/example/seambay/test/selenium/WebServiceTestPageTest.java 2010-02-14
10:11:08 UTC (rev 12051)
@@ -130,7 +130,9 @@
browser.click(LOGIN_LINK);
waitForElementPresent(LOGIN_INPUT_PASSWORD, TIMEOUT);
browser.type(LOGIN_INPUT_USERNAME, username);
+ browser.waitForCondition("var elem =
selenium.browserbot.getCurrentWindow().document.getElementById('serviceRequest');
elem.value.indexOf('<arg0>"+username+"</arg0>')!=-1;",
TIMEOUT);
browser.type(LOGIN_INPUT_PASSWORD, password);
+ browser.waitForCondition("var elem =
selenium.browserbot.getCurrentWindow().document.getElementById('serviceRequest');
elem.value.indexOf('<arg1>"+password+"</arg1>')!=-1;",
TIMEOUT);
browser.click(INVOKE_SERVICE_BUTTON);
browser.waitForAJAXUpdate();
}
Show replies by date