Reputation: 1175
I'm getting stuck on this problem where when I click the 'Select Product' button a window will appear, (the previous window gets disabled until I add a product) and in it I have to select an item in that window and click the ADD button.
The problem is when TestComplete clicks the 'Select Product' the new window opens (and the old window is disabled until the product is added) and the Testcomplete focus is not moving to that new window.
I don't know how to do that, can you guys help me on it?
Upvotes: 0
Views: 1220
Reputation: 701
If you are coding with JScript do a
NameMapping.Sys.TestedApplication.RefreshMappingInfo();
This helped in my case accessing controls in a dialog.
Upvotes: 1
Reputation: 3918
I think that you are facing a deadlock: TestComplete waits until the action invoked by the button pressing is completed while it cannot be completely until TestComplete closes the new window. To avoid the deadlock, you need to call the ClickButton method asynchronously. You can find information on how to do this in the Calling Methods Asynchronously help topic.
Upvotes: 1