Author: jlukas(a)redhat.com
Date: 2010-11-11 10:14:24 -0500 (Thu, 11 Nov 2010)
New Revision: 26453
Modified:
trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/SWTBotExt.java
Log:
use correct index
Modified:
trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/SWTBotExt.java
===================================================================
---
trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/SWTBotExt.java 2010-11-11
14:49:31 UTC (rev 26452)
+++
trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/SWTBotExt.java 2010-11-11
15:14:24 UTC (rev 26453)
@@ -132,7 +132,7 @@
public SWTBotScaleExt scale(int index) {
try {
List<Scale> bsrs = (List<Scale>) widgets(widgetOfType(Scale.class));
- return new SWTBotScaleExt(bsrs.get(0));
+ return new SWTBotScaleExt(bsrs.get(index));
} catch (WidgetNotFoundException ex) {
throw new WidgetNotFoundException(
"Could not find widget of type Browser", ex);
Show replies by date