This project is read-only.

Unable to access MenuBar using UISpy

Aug 19, 2008 at 9:50 AM
Hi All,
Mine is a C# application.
I am unable to access the MenuBar using UISpy. On the other hand I can access the windows notepad file menu.
Following are the properties seen in uispy
  General Accessibility
    AccessKey:    ""
    AcceleratorKey:    ""
    IsKeyboardFocusable:    "False"
    LabeledBy:    "(null)"
    HelpText:    ""
    IsEnabled:    "True"
    HasKeyboardFocus:    "False"
    ClassName:    ""
    ControlType:    "ControlType.MenuBar"
    Culture:    "(null)"
    AutomationId:    "394312"
    LocalizedControlType:    "menu bar"
    Name:    ""
    ProcessId:    "2068 "
    RuntimeId:    "42 394312"
    IsPassword:    "False"
    IsControlElement:    "True"
    IsContentElement:    "True"
    BoundingRectangle:    "(48, 67, 328, 24)"
    ClickablePoint:    "(null)"
    IsOffscreen:    "False"

What property is to be set so that i can access it using UISpy

Aug 19, 2008 at 7:32 PM
try this its works for me!!

           /Core.UIItems.MenuItems.Menu appmenu = getMenuByName(window.MenuBar.TopLevelMenu, "Aplicación"); //the menuname, no the text
           // appmenu.Click();
            //System.Windows.Forms.Application.DoEvents(); //
            //Core.UIItems.MenuItems.Menu menu = getMenuByName(window.MenuBar.TopLevelMenu, "Configuración");
           // menu.Click();

just change the Name string !!
 if u still have problem tell me!!
Aug 22, 2008 at 7:07 AM
Tried using Visual Ui Automation Verify. Worked.