This project is read-only.

mouse clicks to the top right corner

Aug 17, 2011 at 6:37 PM


I have a listbox ( a list of WPFListItems) which I get from the main window of my application. I need to iterate through the list items. Each item needs to be right clicked. This gives me a modal window and on this window I do something (like write on a textbox) then close the window. All is fine till here. Now when the next iteration comes in, the mouse clicks on the top right corner of the screen - it is supposed to click on the second WPFListItem, ( I got to see that the click location is some huge -ve number - ie offscreen) . 

If I just iterate through the list items, not doing anything to get a modal window, then it works as expected. 

I would be very grateful for any kinda hint. 



Aug 18, 2011 at 9:19 AM



maybe the test is to fast, I think the modal window should be closed before you click to the next item right?

Try to wait that the Item you want to click is visible. (not offscreen)