Forum Discussion
tristaanogre
4 years agoEsteemed Contributor
More information, please.
Can you give the actual code that you're using? Are you using NameMapping to find the object? Can you give us a screenshot of the Object Browser showing the object in question with properties, hierarchy, etc?
My guess:
Popupmenus are not recognized in TestComplete as objects to be "found" and interacted with. They are properties on an object that allow a "Click" methodology.
So, what you SHOULD do is have your parent object use that property as indicated in the documentation above. Something like
parentObject.PopupMenu.Click("MenuItem")
- deshmukh4 years agoNew Contributor
I am not using Name mapping
- tristaanogre4 years agoEsteemed Contributor
OK, then your code should be
WPFObject('Tbutton').Click() WPFObject('Tbutton').PopupMenu.Click("Menu Item")
- deshmukh4 years agoNew Contributor
Well , I tried but it doesnt work , giving Error : PopupMenu is null or not an object
Development Hierarchy shown as below :
Related Content
Recent Discussions
- 23 hours agovladd1