Forum Discussion

slecault's avatar
slecault
Contributor
13 years ago

Delphi - The object does not exists

Following an update of our in-house application, some Popup messages are not found by TestComplete. The scripts stops but the Popup window IS on screen, TC times out reporting it could not find the object.



I tried with the tool "Drag the target to point to the object" and:

what is found looks the same but using a different name layout...



Original Code:

Aliases.RxPro.frm_RAP095.RAP095_0



Updated code:

Aliases.RxPro.VCLObject('frm_RAP095').VCLObject('RAP095_0')



I could change my calls (over 150) but would prefer to fix the application assuming it is the application. Note that these Popup are generated at run-time. The code was moved from a .bpl to the actual program (no more .bpl in the executable directory)





Depending on the sequence of events before the popup, the original mapping does work (157 times out of 160 calls).





What could be the cause of this different "mapping"?
No RepliesBe the first to reply