[jbosstools-commits] JBoss Tools SVN: r42921 - branches/jbosstools-3.3.x/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/view.

jbosstools-commits at lists.jboss.org jbosstools-commits at lists.jboss.org
Wed Aug 8 08:49:11 EDT 2012


Author: ljelinko
Date: 2012-08-08 08:49:10 -0400 (Wed, 08 Aug 2012)
New Revision: 42921

Modified:
   branches/jbosstools-3.3.x/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/view/ServersView.java
Log:
Added wait till the shell closes when performing Add project method

Modified: branches/jbosstools-3.3.x/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/view/ServersView.java
===================================================================
--- branches/jbosstools-3.3.x/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/view/ServersView.java	2012-08-08 12:46:06 UTC (rev 42920)
+++ branches/jbosstools-3.3.x/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/view/ServersView.java	2012-08-08 12:49:10 UTC (rev 42921)
@@ -316,7 +316,8 @@
 		ContextMenuHelper.prepareTreeItemForContextMenu(serversTree,server);
 		new SWTBotMenu(ContextMenuHelper.getContextMenu(serversTree, IDELabel.Menu.ADD_AND_REMOVE, false)).click();
 
-		SWTBot shellBot = bot.shell("Add and Remove...").bot();
+		SWTBotShell shell = bot.shell("Add and Remove...");
+		SWTBot shellBot = shell.bot();
 
 		shellBot.tree(0).getTreeItem(projectName).select();
 		shellBot.button("Add >").click();



More information about the jbosstools-commits mailing list