Author: jpeterka
Date: 2010-08-24 05:11:16 -0400 (Tue, 24 Aug 2010)
New Revision: 24374
Modified:
trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/SWTJBTExt.java
Log:
#closeReportUsageWindowIfOpened() added
Modified:
trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/SWTJBTExt.java
===================================================================
---
trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/SWTJBTExt.java 2010-08-24
07:07:14 UTC (rev 24373)
+++
trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/SWTJBTExt.java 2010-08-24
09:11:16 UTC (rev 24374)
@@ -492,4 +492,21 @@
return SWTJBTExt.getDefinedServerRuntimeVersion(bot,index);
}
+
+ /**
+ * Closes RH Report Usage Dialog if found
+ * @param cancel selecte if ok or cancel button is used
+ */
+public void closeReportUsageWindowIfOpened(boolean cancel) {
+ try {
+ bot.shell("Report usage").activate();
+ bot.button(
+ cancel ? IDELabel.Button.CANCEL
+ : IDELabel.Button.OK).click();
+ log.info("Report usage window closed");
+ } catch (WidgetNotFoundException wnfe) {
+ log.info("Report usage window didn't appear");
+ }
+
}
+}
Property changes on:
trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/SWTJBTExt.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Show replies by date