Click() fails to invoke menu - rather it clicks on what's below it.

Mar 28, 2008 at 12:36 AM
The issue is clicking on a menu item in a PopupMenu.

First lets Right click on the list to invoke the Popup menu for the Table

// The following does a right click on the added symbol in the List and click 'sellmenuitem'

list.Rows.Find(r => r.Cells0.Text.Equals(symbol)).RightClick();

// Now Hover over the menu item
Core.InputDevices.Mouse.Instance.Location = Core.C.Center(window.Get<Menu>("SellMenuItem").Bounds);

// The following Code should click on the Sell menu item in the popumenu
// It fails by the time it clicks the popup menu has gone away and pane below recieves the click
window.Get<Menu>("SellMenuItem").Click();

// Here is how I had to implement it to make it work.
Core.InputDevices.Mouse.Instance.Click();

Did I miss a step?
thanks
Mar 28, 2008 at 12:52 AM

Ok, while the above approach shows a work around to the to invoke a click.

The PopupMenu selection does work correctly.

window.PopupMenu("Sell").Click();

// Where "Sell" is the name on the menu item
Coordinator
Mar 28, 2008 at 1:22 PM
<yourcomment>The PopupMenu selection does work correctly.<.yourcomment>
Did you mean it does not work correctly?

In your first comment you shouldn't have to move the mouse yourself to sellMenuItem. White should do it for you.
Is it possible for you to give me more information (sample code etc?) so that I can debug this issue further.