|Searching Trees [message #560004]
||Mon, 20 September 2010 16:50
| Alexander Kidd
Registered: September 2010
I expected to be able to do something like this:
Matcher<Widget> customMatcher = WidgetMatcherFactory.withRegex("regex");
SWTBotTreeItem treeItem = new SWTBotTreeItem((TreeItem)bot.widget(customMatcher, headTreeItem);
But I get no results.
I'm trying to find a TreeItem that is already expanded and made visible by Eclipse as the test runs so the issue isn't that the item hasn't been loaded yet.
Is searching a tree using a matcher (any type of matcher) possible?
I noticed that there's no TreeResolver or TreeItemResolver in org.eclipse.swtbot.swt.finder.resolvers, is that what would be necessary for the matcher to work correctly on Trees?
Assuming I'm not doing it wrong and matchers for trees simply don't work with SWTBot then is there a recommended way to search trees without knowing the full path to the tree item? Just getting the getAllItems() list and looping through it?
[Updated on: Mon, 20 September 2010 16:50]
Report message to a moderator
Powered by FUDForum
. Page generated in 0.20841 seconds