Forum Discussion
AlexeyK
Alumni
14 years agoJacqueline,
I tried implementing the code you provided but it failed to work...
What error did you get?
As far as I know, the way TestComplete works with context menus does not depend on the way the context menu is created (at run time or at design time), because TestComplete simulates menu item selection after the menu is shown on screen. To check this, I added your C++ code to my application - everything worked fine.
You wrote about ID and that's not clear to me --
there is no real ID associated with the Actions "parent" menu item
What do you mean? Did you use IDs to address menu items? If you did, this is not what I meant. I wrote about indexes; the index is the position (zero-based) of the desired item in the menu...