following situation: In a test I open an editor in an Eclipse application using IUIContext commands. Then I want to test some tree items in a tree contained in the opened editor. The tree is the only one in the editor. I use the following locator:
- Code: Select all
new TreeItemLocator("[...]", new SWTWidgetLocator(Tree.class, new EditorLocator("[...]")))
But locating it with ui.findAll finds a second tree item with the same name but another tree as parent. This other tree is not part of the editor, instead part of a view. I thought specifying EditorLocator will scope widget finding to that editor. What is wrong in my thoughts?
Thanks for any help,
Steffen