Community
Participate
Working Groups
Build Identifier: 20100218-1602 After executing a search the "Search" view is opened to show the results. SWTBot cannot click on the menu item "Show as List" or "Show as Tree". Reproducible: Always Steps to Reproduce: 1. Open the File Search dialog and enter some values 2. Execute the search so that the "Search" view is opened 3. Try to execute the "Show as List" view menu
Created attachment 176096 [details] Patch for ViewMenuFinder class The reason for this bug is that only ActionContributionItem instances are searched(found) and not also SubContributionItem/SubManager objects. This has been fixed in the patch.
Created attachment 176097 [details] Corrected the previous patch and added testcase for the bug
Note that with suggested change https://git.eclipse.org/r/36282 , you should be able to manipulate the view menu in plain SWT-style, with bot.toolbarDropDownButtonWithTooltip("View Menu").menuItem(...).