Forum Discussion
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
- gd11 years agoNew 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.
- leandroaraujoso11 years agoContributor
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
- Ravik11 years agoSuper ContributorYeah !! 40 second is too much time. searching would be depend on the hierarchy and depth of the object. try to pass nearest parent of the object. As you said, you are trying to search button. If in your code you are trying to find that on Sys.process() level than it would be take time becouse under that Sys.process() several child proccess are rungun like - Window, Web Pages,email ....etc FindChild is searching your object in all process. Try to use nearest parent. it may reduce your searching time.