This project is read-only.

click does not hit the target menu

Jul 18, 2008 at 8:44 AM

I have the following little test app,  when i run it will put the mouse pointer on the correct X position but it will be at the top edge of my desktopscreen.  Obviously the click now doesn't open the View menu.

application = Application.Launch("notepad");



Window window = application.GetWindow("Untitled - Notepad");




Menu menu = window.MenuBar.TopLevelMenu.Find("View");



Jul 20, 2008 at 7:01 PM
If your notepad View menu item is outside screen then it would not work.
You can take help of Keyboard class to do it such case. Or you can maximize window (if it would bring the View item in display region of desktop).
window.DisplayState to do this.
Jul 24, 2008 at 9:55 AM
sorry,but the view menu is definitly not outside the screen.
Jul 24, 2008 at 8:04 PM
Can you do window.LogStructure and send me the output that comes out in the log or console.