Solved
Forum Discussion
Wamboo
5 years agoCommunity Hero
Yo Stefanie!
The error "Type mismatch: 'TestObject.WaitChild" it is because the result of .WaitChild() its an object not true/false value (boolean)
what you can do is to add .Exists in Your If condition to properly check the state of the object.
Example:
if(Aliases.Cube.CubeTransitionBox.WaitChild("WLbl_ValidationImage", 50000).Exists) { // code }
The result from .Exist method is a boolean value.
Hope this will help Yoy.
Related Content
- 7 years agoromanmfs
- 4 years agoDavid_D
- 9 years agoMorgan
- 8 years agoblatec
- 10 years agorbhogavalli