Forum Discussion
18 Replies
- Marsha_R
Champion Level 3
There are a couple of things you can try:
1) Record a test that opens those menus so you can make sure that you are calling the objects the same thing that TestComplete is.
2) Try running the test in debug mode so you can step through those menus. It's possible that the test is running faster than the drop downs are loading so that the test looks for the second menu before it actually exists. You can handle that with some version of Wait, maybe Wait Child.
- MadGrbContributor
@Marsha_R Thanks for your reply,
when I record a Test that's working correctly because, she creates a new mapping name for every Object in her DB, but I do not want to create one map's name for every object. I am looking for global solution.
I have use wait between these two menus, but I get some reason. I think TC cannot find second popup. Please look at photos , she cannot find Button Object.- MadGrbContributor
Hi to all,
nobody have no Idea!
Hi MadGrb,
It looks like your question requires a deeper investigation. I see that you are using a WPF popup menu. To start, could you please check that TestComplete officially supports the WPF control used in your tested app? You can find a list of all supported controls in the Supported WPF Controls article.
Also, it's worth calling the Refresh method from the menu after you click the first item. This will make TestComplete refresh the object tree and the tool may find the needed subitem.
- MadGrbContributor
TanyaYatskovska Hi,
I have use refresh but I get nothing.
Aliases.JTL_Wawi.Popup.Root.PopupMenuBarControl.RefreshMappingInfo() Item = Aliases.JTL_Wawi.Popup.Root.PopupMenuBarControl
again she find old ContextMenu 😞