Forum Discussion

jose_pita's avatar
jose_pita
Super Contributor
12 years ago

Find Timeout on Flex app

Hi Guys,



I'm using TC to test a flex app.

I'm facing this problem:





obj.Find("Name", "Image(0)", 20).Click();





When the object exists, TC finds it really fast and clicks the object with no problem.



The problem occurs when the object is not there, it takes more or less 3 minutes to log an error and proceed to the next step. I tried with a smaller number on the depth parameter and it's faster but I need that "20" in depth to find the object I'm looking for..

Is there a way to give a maxTimeOut or something similar to a Find?

2 Replies

  • Hi Jose,

     


    TestComplete iterates through all child branchs of objects within the specified depth. 20 is a kind of deep. Maybe you can identify more parent objects (by using wildcards to change dynamic parts or etc.) to reduce the number of branch during the search.


     

  • jose_pita's avatar
    jose_pita
    Super Contributor
    That's exactly what I was trying to avoid in order to be able to use the same function throughout the entire tests instead of having to search for a closer parent.



    The thing is, when I use this on a webapp, it gives the error in a few seconds, using the exact same function... Maybe that's a problem directly connected with the flex technology or the way it is built...