Author: ozizka(a)redhat.com
Date: 2009-03-17 13:35:33 -0400 (Tue, 17 Mar 2009)
New Revision: 232
Modified:
trunk/jsfunit/src/test/java/org/jboss/jopr/jsfunit/EmbjoprTestCase.java
Log:
Added ejtt.navTree.waitUntilReady(100, 15) into getNavTreeArrow():
ejtt.navTree.waitUntilReady(100, 15); // Tree.Item can be still loading.
Modified: trunk/jsfunit/src/test/java/org/jboss/jopr/jsfunit/EmbjoprTestCase.java
===================================================================
--- trunk/jsfunit/src/test/java/org/jboss/jopr/jsfunit/EmbjoprTestCase.java 2009-03-17
17:32:55 UTC (rev 231)
+++ trunk/jsfunit/src/test/java/org/jboss/jopr/jsfunit/EmbjoprTestCase.java 2009-03-17
17:35:33 UTC (rev 232)
@@ -184,7 +184,10 @@
* (eg. "Web Applications (WAR)", "Datasources", etc.) in the
* navigation tree.
*/
- public ClickableElement getNavTreeArrow(String resourceName) {
+ public ClickableElement getNavTreeArrow(String resourceName) throws
EmbJoprTestException {
+
+ ejtt.navTree.waitUntilReady(100, 15); // Tree.Item can be still loading.
+
HtmlAnchor link = getNavTreeLink(resourceName);
String id = link.getIdAttribute();
@@ -198,7 +201,7 @@
/**
* Expand the nav tree arrow for the given resource.
*/
- public void expandNavTreeArrow(String resourceName) throws IOException {
+ public void expandNavTreeArrow(String resourceName) throws IOException,
EmbJoprTestException {
// Expand the tree node
ClickableElement resourceArrow = getNavTreeArrow(resourceName);
Show replies by date