Hi,
I'm trying to locate widgets on a CTabItem within an RCP application.
2 things I need to check are:
1. contents of a label that appears on the CTabItem.
2. contents of a tree that also appears on the CTabItem.
I'm having problems trying to locate the widgets:
I've tried this:
SWTBotView view = bot.viewById("QueryView");
SWTBotCTabItem item = view.bot().cTabItem();
@SuppressWarnings("unchecked")
Matcher<Widget> m = allOf(widgetOfType(Text.class), withLabel("Query:"));
SWTBotText bot_text = view.bot().widget((Text)m, item.widget);
Basically it gets to the last line, and when it hits call to view.bot().widget((Text)m, item.widget)
it throws the WidgetNotFoundException.
Any advice would be greatly appreciated.
[Updated on: Tue, 04 December 2012 17:11] by Moderator