Forum Discussion

gd's avatar
gd
New Contributor
9 years ago

What is the data structure/search algorithm behind the FindChild method?

I'm looking to improve the performance of the FindChild method. Before doing so it would be helpful to understand what algorithm/data strucuture is currently in use. Could someone please explain how FindChild works.

4 Replies

  • Hello gd,

     

    Welcome to the SmartBear Community :)

     

    I've been using FindChild and all others similar search methods and I found it very power and very fast too. I think you might be using it incorrectly. Could you explain what you searching with that method? What kind of application you are searching into.

     

    Regards,

     

    Leandro de Araújo Souza

    • gd's avatar
      gd
      New Contributor

      We're automating a salesforce platform. The pages are fairly large, in the range of a few thousand elements. We're experiencing a dramtic delay in searching for elements. Sometimes it takes up to 40 seconds to search for a button on a webpage.

      • 40 seconds to find a buttons is way to much. Are you passing good filters to the method? Could post a screenshot as an example of one button in the TC Object Browser which is taking that much to be found? Please, send a code snipped of that search too.

         

        P.S: I can't wait more than 2 sec to find a button :)

         

        Regards,

         

        Leandro de Araújo Souza