This project is read-only.

unable to hold poup window

Oct 19, 2010 at 1:14 AM
Edited Oct 19, 2010 at 2:15 AM

I have a code to invoke the popup window however the poup window does not appear. Hence, I am unable to get the menu items and compare them. The verification fails and message in the NUnit is "value cannot be null" Can someone please help. Thanks.

Point clickablePoint = new Point(mainWindow.Bounds.TopLeft.X + 50, mainWindow.Bounds.TopLeft.Y + 270);


PopUpMenu popupmenu = mainWindow.Popup;

List<string> expectedItems = new List<string>() { )"A", "B", "C"

Oct 19, 2010 at 9:55 AM



if I read your description I would think the right click does not work as expected.



Oct 19, 2010 at 1:30 PM

yes, do you think there is a problem in the code given? if so, what should i try to change. Thanks as always for your help.

Oct 19, 2010 at 2:05 PM


I think you use this way, because the element you right click on is not visible for White, right?

Maybe the position is not correct? , can you see the mouse during test run?




Oct 19, 2010 at 2:28 PM

Actually, i added some thread.sleep before the right click and popup appeared for a second and then disappeared. It seems that the popup is very fast that us displayed after right click does not stay long info to retrieve info for the menu items. What can be done on this instance. Tahnks