I am using this instruction to click on the option Group By/2 Breakpoint Types:
- Code: Select all
ui.click(new PullDownMenuItemLocator("Group By/2 Breakpoint Types", new ViewLocator(IDebugUIConstants.ID_BREAKPOINT_VIEW)));
This works fine. However, when I try to click on Group By/1 Breakpoints, the following does not work:
- Code: Select all
ui.click(new PullDownMenuItemLocator("Group By/1 Breakpoints", new ViewLocator(IDebugUIConstants.ID_BREAKPOINT_VIEW)));
If I am using the right path and the first instruction works I don't see why the second one would not. Any ideas?
Another thing I noticed is that when I use the recorder to click on Group By/1 Breakpoints I get this code:
- Code: Select all
IUIContext ui = getUI();
ui.click(new CTabItemLocator("Breakpoints"));
ui.click(new MenuItemLocator("Group By/2 Breakpoint Types"));
ui.click(new MenuItemLocator("Group By/1 Breakpoints"));
However, when I try to use this it doesn't work.
Thanks.