|findControls() [message #501315]
||Tue, 01 December 2009 15:18
Registered: December 2009
I'm new to SWTBot. I cannot find ClassMatcher in SWTBot 2.0. Someone mentioned that the ClassMatcher is now replaced by the api widgetOfType(class). But, I don't find this either. I find the findControls() method takes in parameter Matcher<T> matcher. But I'm not sure
how to use it fo find the tree in my selected view.
I want to find the controls in the selected view.
I'm trying to use it the following way:
SWTBotView view = bot.activeView();
List controls = new ChildrenControlFinder(view.getWidget()).findControls(Matcher <Tree> (Tree.class));//which I know is wrong
Can someone please correct me ?
Powered by FUDForum
. Page generated in 0.04258 seconds