Forum Discussion

kandy1984's avatar
kandy1984
Contributor
7 years ago

Identifying items in a context strip menu

Hi,

 

A context strip is displayed after right clicking on a menu item. However, the object spy does not show the objects on the context strip menu. Is there a way that i can obtain all the items on the context strip menu so that i can specifically ask TC to click on a specific item by name. Pls see attached screenshot.

 

Thanks for helping,

Sudha

2 Replies

  • kandy1984

     

    Object you captured itself is a "Context Menu" control. You can find the properties "wItems"down below in your screenshot as it already indicates that "wButtonCount" is "23". You can traverse through the wItems and perform the relevant operation

     

    Thanks,

    Rajesh V V

    • kandy1984's avatar
      kandy1984
      Contributor

      Thanks Rajesh, However, i solved the problem by using clickitem("Equipment Details...").

       

      Call Aliases.ProgramName.ContextMenuStrip.clickitem("Equipment Details...")

       

      This is by the name and not the position. This worked for me.