engise
13 years agoOccasional Contributor
Problem with dynamic objects
Hello all,
I am new to this so I will try to explain this as best as I can. I am
writing an automated script on Testcomplete 7 for a web application
written on Java at my company, actually I am just fixing some minor
bugs. One of the most irritating things are dynamic objects (not sure if
you call them that). Once I restart Internet Explorer the ids of the
objects changes and I get an error in the log like this "Unable to find
the object SwingObject("UILazyComponent$BasicLazyComponent", "", 5)".
That 5 changes every time. And when it changes I have to go in to the
source code to change it from 1 to 5 or something along the lines of
that. Is there a way to make the script find the id by itself, because
the script has to be automated and the people using it wont have any
knowledge of Tescomplete or Java or JavaScript.
Thank you for your time !
Best regards,
- engise
I am new to this so I will try to explain this as best as I can. I am
writing an automated script on Testcomplete 7 for a web application
written on Java at my company, actually I am just fixing some minor
bugs. One of the most irritating things are dynamic objects (not sure if
you call them that). Once I restart Internet Explorer the ids of the
objects changes and I get an error in the log like this "Unable to find
the object SwingObject("UILazyComponent$BasicLazyComponent", "", 5)".
That 5 changes every time. And when it changes I have to go in to the
source code to change it from 1 to 5 or something along the lines of
that. Is there a way to make the script find the id by itself, because
the script has to be automated and the people using it wont have any
knowledge of Tescomplete or Java or JavaScript.
Thank you for your time !
Best regards,
- engise