vex
14 years agoContributor
Object Exists but TC doesn't see it.
This code isn't working as I'm expecting it to. Any ideas?
The output in my log is:
A Match!
False
Clicked it!
How can TestComplete get the idStr/Any other property from this item, yet this item doesn't exist? If I use the object spy, it shows Exists is true, but during execution it is ALWAYS false.. yet it reads properties and the like from it without problems.
PropName = Array("ObjectType")
PropValue = Array("Checkbox")
res = yhooFile.FindAllChildren(PropName, PropValue, 20000, True)
For i = 0 to UBound(res)
If res(i).idStr = fDiz Then
Log.Message "A Match!"
Log.Message res(i).Exists
If res(i).Exists Then
Log.Message "It exists!"
Call res(i).Click
End If
Log.Message "Clicked it!"
End If
Next
The output in my log is:
A Match!
False
Clicked it!
How can TestComplete get the idStr/Any other property from this item, yet this item doesn't exist? If I use the object spy, it shows Exists is true, but during execution it is ALWAYS false.. yet it reads properties and the like from it without problems.