Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 322060 - Cannot click on "Show as List" view menu of "Search" view
Summary: Cannot click on "Show as List" view menu of "Search" view
Status: NEW
Alias: None
Product: SWTBot
Classification: Technology
Component: SWTBot (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-08-07 18:35 EDT by Marko Tomljenovic CLA
Modified: 2014-11-11 10:11 EST (History)
1 user (show)

See Also:


Attachments
Patch for ViewMenuFinder class (2.73 KB, patch)
2010-08-07 18:37 EDT, Marko Tomljenovic CLA
no flags Details | Diff
Corrected the previous patch and added testcase for the bug (4.08 KB, patch)
2010-08-07 19:06 EDT, Marko Tomljenovic CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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(...).