p6s
8 years agoNew Contributor
TC 12.3, WinFormsObject(name).Exists raises run-time error instead of false
Anyone else come across this?
I don't know if this happens all the time, but in our automation tool that leverages TC for screen interactions, WinFormsObject(name).Exists now raises a run-time error -2072187182 with message:
Unable to find the object WinFormsObject("myTestObjectName"). See additional Information for Details. The object with the specified attributes does not exists. Possible causes of the error: aqa-help://2202
This was not a problem in earlier versions (11.2 and before). The .Exists would simply return a false value and would allow my automation to proceed according to the specified logic.
I have over 250 instances of this, rewriting all the code to trap this correctly is not a pleasant prospect.
The WaitWinFormsObject(""myTestObjectName", 100).Exists seems to work as expected.