Author: ljelinko
Date: 2012-01-24 09:33:57 -0500 (Tue, 24 Jan 2012)
New Revision: 38085
Modified:
trunk/portlet/tests/org.jboss.tools.portlet.ui.bot.test/src/org/jboss/tools/portlet/ui/bot/task/console/ConsoleClearingTask.java
Log:
click the clear button only if it is enabled
Modified:
trunk/portlet/tests/org.jboss.tools.portlet.ui.bot.test/src/org/jboss/tools/portlet/ui/bot/task/console/ConsoleClearingTask.java
===================================================================
---
trunk/portlet/tests/org.jboss.tools.portlet.ui.bot.test/src/org/jboss/tools/portlet/ui/bot/task/console/ConsoleClearingTask.java 2012-01-24
13:31:13 UTC (rev 38084)
+++
trunk/portlet/tests/org.jboss.tools.portlet.ui.bot.test/src/org/jboss/tools/portlet/ui/bot/task/console/ConsoleClearingTask.java 2012-01-24
14:33:57 UTC (rev 38085)
@@ -20,7 +20,7 @@
SWTBotView view = SWTBotFactory.getConsole().show();
for (SWTBotToolbarButton button : view.getToolbarButtons()){
- if
(IDELabel.ConsoleView.BUTTON_CLEAR_CONSOLE_TOOLTIP.equals(button.getToolTipText())){
+ if (button.isEnabled() &&
IDELabel.ConsoleView.BUTTON_CLEAR_CONSOLE_TOOLTIP.equals(button.getToolTipText())){
button.click();
}
}