Forum Discussion
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")
I am not using Name mapping
- tristaanogre5 years agoEsteemed Contributor
OK, then your code should be
WPFObject('Tbutton').Click() WPFObject('Tbutton').PopupMenu.Click("Menu Item")
- deshmukh5 years agoNew Contributor
Well , I tried but it doesnt work , giving Error : PopupMenu is null or not an object
Development Hierarchy shown as below :- tristaanogre5 years agoEsteemed Contributor
The code of the AUT doesn't help. Please provide the code you are actually executing in TestComplete. We'll need that to determine what's going wrong.
Related Content
- 9 years ago
- 13 years ago
- 4 years ago
- 2 years ago
Recent Discussions
- 2 days ago