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

Mar 27, 2008 at 11:36 PM
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

// Here is how I had to implement it to make it work.

Did I miss a step?
Mar 27, 2008 at 11:52 PM

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

The PopupMenu selection does work correctly.


// Where "Sell" is the name on the menu item
Mar 28, 2008 at 12: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.