Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 322060

Summary: Cannot click on "Show as List" view menu of "Search" view
Product: [Technology] SWTBot Reporter: Marko Tomljenovic <tomljenovic>
Component: SWTBotAssignee: Project Inbox <swtbot-inbox>
Status: NEW --- QA Contact:
Severity: normal    
Priority: P3 CC: mistria
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
Patch for ViewMenuFinder class
none
Corrected the previous patch and added testcase for the bug none

Description Marko Tomljenovic CLA 2010-08-07 18:35:30 EDT
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
Comment 1 Marko Tomljenovic CLA 2010-08-07 18:37:26 EDT
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.
Comment 2 Marko Tomljenovic CLA 2010-08-07 19:06:52 EDT
Created attachment 176097 [details]
Corrected the previous patch and added testcase for the bug
Comment 3 Mickael Istria CLA 2014-11-11 10:11:14 EST
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(...).