Forum Discussion

jyothinb's avatar
8 years ago

waiting for an object

I am using below code in one of my script. It is completely waiting 30000ms even the label is present there. I am expecting the code to work wait until the label presents and then move to next operation with out waiting until 30000ms.



label = Aliases["Ascend"]["frmMDI"]["MdiClient"]["frmDesktop"]["GreetingLayoutPanel"]["GreetingLabel"];

1 Reply

  • Time for some investigation.  Set a breakpoint in your test at the line where it fails and then start examining the object tree in your app using the Object Browser.  Follow along the Aliases chain







    If any link is not reachable, determine why.  Are the object recognition criteria correct?  Has some recognition value changed since TestComplete recorded it?  Perhaps TestComplete didn't choose an appropriate property for the recognition criteria.  (A name is usually better than an index.)