Forum Discussion

gd's avatar
gd
New Contributor
9 years ago

Attempting to access a Page/Table/Form etc... object's missing attribute ObjectLabel, causing delay

We're attempting to access an object's attribute that doesn't exist in the object. When TestComplete is run it appears to "hang" on this object for around ~5 seconds before moving on other code. Is there a way to prevent TestComplete from waiting on the object's attribute if it doesn't exist?

 

For example the Page object doesn't have the "ObjectLabel" attribute in it, and below is an example of the attribute trying to be accessed, it displays the ObjectLabel and a loading bar with significant wait time.

 

objectlabel_issue.png

1 Reply

  • TanyaYatskovska's avatar
    TanyaYatskovska
    SmartBear Alumni (Retired)

    Hi GD,

     

    I would suggest that you use the Wait method to obtain this object and specify the time you want TestComplete to wait for it. The timeout is in ms. So, you can specify 100 ms in the method. In this case, TestComplete will wait for the object for very short time.  Please read the "Methods (Web Objects)" (http://support.smartbear.com/viewarticle/61569/? ) help topic for details.