Forum Discussion

arybalka's avatar
arybalka
Occasional Contributor
7 years ago
Solved

How to/improve performance of my function/JavaScript

Hi every one, I am using very often my function to fill text fields, dropdowns or calendar/date select fields. It is working properly but I am not really happy with performance. Any advise how to m...
  • tristaanogre's avatar
    7 years ago

    The problem, I believe, is in your use of the "Find" method on the NativeWebObject of the page. This is searching the entire page for the object that you want.  Instead of searching the whole page, there are other objects like Panel or Table or Cell within the page that are child objects in the page.  The further down the hierarchy you go so that you're close to the desired object, the faster the Find method will run (less objects to search through).  This would be my first step in improving performance... improve your Find to search closer to the desired object.