JavierCollRodri
15 years agoContributor
jQuery objects multiplicated on Object Browser
Hello,
I've got a problem when automating a web page with jQuery.
The application lists a series of elements via jQuery. Every time any element gets listed, I destroy the previously created lists and dialogs associated, so there is no duplication in the web page.
But every time an element is listed, Test Complete stores new panels in the Object Browser instead of replacing the values, so after updating a list 3 times (for example) there are 3 panels with the same name plus a counter (for example, "main_1", "main_3" and so on, where "main" is the object ID), filled with the same information (so there is an object with id "side" inside "main_1", "main_3"... - no counter is added, if you understand me)
The major problem of that issue is that after listing ten times some elements and searching for a nonexistent object (a previously deleted element, for example), the search takes much time to finish (some times it took me 10 minutes, and I had to stop the execution!)
To solve it I have used the property "VisibleOnScreen" in my searches, but it's not efficient, so maybe an object is not visible on screen every time (for example, when the list exceeds the screen)
So my question is, has anyone seen this before? Is there a way to avoid panel multiplication or to reload the Object Browser, so nonexistent panels get deleted?
Thank you very much!
I've got a problem when automating a web page with jQuery.
The application lists a series of elements via jQuery. Every time any element gets listed, I destroy the previously created lists and dialogs associated, so there is no duplication in the web page.
But every time an element is listed, Test Complete stores new panels in the Object Browser instead of replacing the values, so after updating a list 3 times (for example) there are 3 panels with the same name plus a counter (for example, "main_1", "main_3" and so on, where "main" is the object ID), filled with the same information (so there is an object with id "side" inside "main_1", "main_3"... - no counter is added, if you understand me)
The major problem of that issue is that after listing ten times some elements and searching for a nonexistent object (a previously deleted element, for example), the search takes much time to finish (some times it took me 10 minutes, and I had to stop the execution!)
To solve it I have used the property "VisibleOnScreen" in my searches, but it's not efficient, so maybe an object is not visible on screen every time (for example, when the list exceeds the screen)
So my question is, has anyone seen this before? Is there a way to avoid panel multiplication or to reload the Object Browser, so nonexistent panels get deleted?
Thank you very much!