bo_roop
8 years agoContributor
Need C# syntax for ChildObjectName inside of a WaitChild event
The online help shows me this:
if (Obj["WaitChild"](ChildObjectName, 0)["Exists"])
What I want to do is use ["Panel"](2) as my child object's name... but I can't figure out the syntax to set ChildObjectName = ["Panel"](2) in my script and get it to replay without errors.
I also can't reliable use a FindChild event as TestComplete does not replay 100% of the time. :(
Try changing from FindChild to FindChildEx with an additional parameter for timeout (see my example above)