Author: vpakan(a)redhat.com
Date: 2010-03-18 07:30:41 -0400 (Thu, 18 Mar 2010)
New Revision: 20902
Modified:
trunk/jsf/tests/org.jboss.tools.jsf.ui.bot.test/src/org/jboss/tools/jsf/ui/bot/test/cssdialog/jbide/CSSSelectorJBIDE3288.java
Log:
Expand Attribute node before selection styleClass property within Properties window
Modified:
trunk/jsf/tests/org.jboss.tools.jsf.ui.bot.test/src/org/jboss/tools/jsf/ui/bot/test/cssdialog/jbide/CSSSelectorJBIDE3288.java
===================================================================
---
trunk/jsf/tests/org.jboss.tools.jsf.ui.bot.test/src/org/jboss/tools/jsf/ui/bot/test/cssdialog/jbide/CSSSelectorJBIDE3288.java 2010-03-18
11:29:27 UTC (rev 20901)
+++
trunk/jsf/tests/org.jboss.tools.jsf.ui.bot.test/src/org/jboss/tools/jsf/ui/bot/test/cssdialog/jbide/CSSSelectorJBIDE3288.java 2010-03-18
11:30:41 UTC (rev 20902)
@@ -5,6 +5,7 @@
import org.eclipse.swtbot.swt.finder.exceptions.WidgetNotFoundException;
import org.eclipse.swtbot.swt.finder.widgets.SWTBotShell;
import org.eclipse.swtbot.swt.finder.widgets.SWTBotTree;
+import org.eclipse.swtbot.swt.finder.widgets.SWTBotTreeItem;
import org.jboss.tools.jsf.ui.bot.test.JSFAutoTestCase;
import org.jboss.tools.ui.bot.test.WidgetVariables;
@@ -92,8 +93,9 @@
delay();
SWTBot innerBot = bot.viewByTitle(WidgetVariables.PROPERTIES).bot();
SWTBotTree tree = innerBot.tree();
- tree.getAllItems()[0].getNode("styleClass").select(); //$NON-NLS-1$
- tree.getAllItems()[0].getNode("styleClass").click(); //$NON-NLS-1$
+ SWTBotTreeItem tiStyleClass =
tree.getAllItems()[0].expand().getNode("styleClass");
+ tiStyleClass.select(); //$NON-NLS-1$
+ tiStyleClass.click(); //$NON-NLS-1$
bot.button("...").click(); //$NON-NLS-1$
}
Show replies by date