|Widgets on CTabItem [message #989157]
||Tue, 04 December 2012 22:09
| Jim Klo
Registered: September 2012
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();
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
it throws the WidgetNotFoundException.
Any advice would be greatly appreciated.
[Updated on: Tue, 04 December 2012 22:11]
Report message to a moderator
Powered by FUDForum
. Page generated in 0.03070 seconds