Forum Discussion
Ryan_Moran
10 years agoValued Contributor
We had a similar issue with Delphi apps, but TestComplete was not the cause.
Instead it was an issue with Delphi/Windows which was exposed by the "speed" in which TestComplete clicked through various windows. The fix was to add to the Delphi application two things:
form.PopupMode := pmExplicit;
form.PopupParent := frmMyFormName;
This assumes you do not have a line of code that explicitly sets focus back to the main form with the .Focus() method;
and that you are not attempting to click back to the main form prior to closing the modal window or dialogue.