Forum Discussion
gd
11 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.
leandroaraujoso
11 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.