Not able to click on the Context MenuItem of application

Oct 27, 2010 at 9:52 AM

Hello All,

         The application I am working on is built using Java SWT. We have a perspective change pane. When I click on this pane, there is a context menu which pops up. The code is 

PopUpMenu popupMenu = MyAppWindow.Popup;    

Menu itemSelect= popupMenu.ItemBy(SearchCriteria.ByText("Data Center"));; - This throws an exception saying the ElementNotFound. What I have observed is that when this method is executed, the context menu collapses for which I can not use Click() method.

The Menu Item is returned and I am able see all the properties matching the element. 

I also tried, 

PopUpMenu popupMenu = InfraStruxureWindow.Popup;  

Menu itemSelect= popupMenu.ItemBy(SearchCriteria.ByText("Data Center")); 


This invoke Pattern also does not work. 

Could anyone please let me know how to work on this context menu which is popped up with in my application. 

Thanks in advance

Nov 21, 2010 at 4:33 AM

Can you provide some code sample for which reproduces this scenario. I mean AUT code.